Class Vulnerability.Detail.Builder (2.46.0)

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

Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2

Protobuf type grafeas.v1beta1.vulnerability.Vulnerability.Detail

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Vulnerability.Detail build()
Returns
Type Description
Vulnerability.Detail

buildPartial()

public Vulnerability.Detail buildPartial()
Returns
Type Description
Vulnerability.Detail

clear()

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

clearCpeUri()

public Vulnerability.Detail.Builder clearCpeUri()

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearDescription()

public Vulnerability.Detail.Builder clearDescription()

A vendor-specific description of this note.

string description = 6;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFixedLocation()

public Vulnerability.Detail.Builder clearFixedLocation()

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

Returns
Type Description
Vulnerability.Detail.Builder

clearIsObsolete()

public Vulnerability.Detail.Builder clearIsObsolete()

Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.

bool is_obsolete = 9;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearMaxAffectedVersion()

public Vulnerability.Detail.Builder clearMaxAffectedVersion()

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

Returns
Type Description
Vulnerability.Detail.Builder

clearMinAffectedVersion()

public Vulnerability.Detail.Builder clearMinAffectedVersion()

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

Returns
Type Description
Vulnerability.Detail.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackage()

public Vulnerability.Detail.Builder clearPackage()

Required. The name of the package where the vulnerability was found.

string package = 2;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearPackageType()

public Vulnerability.Detail.Builder clearPackageType()

The type of package; whether native or non native(ruby gems, node.js packages etc).

string package_type = 8;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearSeverityName()

public Vulnerability.Detail.Builder clearSeverityName()

The severity (eg: distro assigned severity) for this vulnerability.

string severity_name = 5;

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

clearSourceUpdateTime()

public Vulnerability.Detail.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 = 10;

Returns
Type Description
Vulnerability.Detail.Builder

clone()

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

getCpeUri()

public String getCpeUri()

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Returns
Type Description
String

The cpeUri.

getCpeUriBytes()

public ByteString getCpeUriBytes()

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Returns
Type Description
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public Vulnerability.Detail getDefaultInstanceForType()
Returns
Type Description
Vulnerability.Detail

getDescription()

public String getDescription()

A vendor-specific description of this note.

string description = 6;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A vendor-specific description of this note.

string description = 6;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

Returns
Type Description
VulnerabilityLocation

The fixedLocation.

getFixedLocationBuilder()

public VulnerabilityLocation.Builder getFixedLocationBuilder()

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

Returns
Type Description
VulnerabilityLocation.Builder

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

Returns
Type Description
VulnerabilityLocationOrBuilder

getIsObsolete()

public boolean getIsObsolete()

Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.

bool is_obsolete = 9;

Returns
Type Description
boolean

The isObsolete.

getMaxAffectedVersion()

public Version getMaxAffectedVersion()

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

Returns
Type Description
Version

The maxAffectedVersion.

getMaxAffectedVersionBuilder()

public Version.Builder getMaxAffectedVersionBuilder()

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

Returns
Type Description
Version.Builder

getMaxAffectedVersionOrBuilder()

public VersionOrBuilder getMaxAffectedVersionOrBuilder()

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

Returns
Type Description
VersionOrBuilder

getMinAffectedVersion()

public Version getMinAffectedVersion()

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

Returns
Type Description
Version

The minAffectedVersion.

getMinAffectedVersionBuilder()

public Version.Builder getMinAffectedVersionBuilder()

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

Returns
Type Description
Version.Builder

getMinAffectedVersionOrBuilder()

public VersionOrBuilder getMinAffectedVersionOrBuilder()

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

Returns
Type Description
VersionOrBuilder

getPackage()

public String getPackage()

Required. The name of the package where the vulnerability was found.

string package = 2;

Returns
Type Description
String

The package.

getPackageBytes()

public ByteString getPackageBytes()

Required. The name of the package where the vulnerability was found.

string package = 2;

Returns
Type Description
ByteString

The bytes for package.

getPackageType()

public String getPackageType()

The type of package; whether native or non native(ruby gems, node.js packages etc).

string package_type = 8;

Returns
Type Description
String

The packageType.

getPackageTypeBytes()

public ByteString getPackageTypeBytes()

The type of package; whether native or non native(ruby gems, node.js packages etc).

string package_type = 8;

Returns
Type Description
ByteString

The bytes for packageType.

getSeverityName()

public String getSeverityName()

The severity (eg: distro assigned severity) for this vulnerability.

string severity_name = 5;

Returns
Type Description
String

The severityName.

getSeverityNameBytes()

public ByteString getSeverityNameBytes()

The severity (eg: distro assigned severity) for this vulnerability.

string severity_name = 5;

Returns
Type Description
ByteString

The bytes for severityName.

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 = 10;

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 = 10;

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 = 10;

Returns
Type Description
TimestampOrBuilder

hasFixedLocation()

public boolean hasFixedLocation()

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

Returns
Type Description
boolean

Whether the fixedLocation field is set.

hasMaxAffectedVersion()

public boolean hasMaxAffectedVersion()

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

Returns
Type Description
boolean

Whether the maxAffectedVersion field is set.

hasMinAffectedVersion()

public boolean hasMinAffectedVersion()

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

Returns
Type Description
boolean

Whether the minAffectedVersion 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 = 10;

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

mergeFixedLocation(VulnerabilityLocation value)

public Vulnerability.Detail.Builder mergeFixedLocation(VulnerabilityLocation value)

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Vulnerability.Detail other)

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

mergeMaxAffectedVersion(Version value)

public Vulnerability.Detail.Builder mergeMaxAffectedVersion(Version value)

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

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

mergeMinAffectedVersion(Version value)

public Vulnerability.Detail.Builder mergeMinAffectedVersion(Version value)

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

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

mergeSourceUpdateTime(Timestamp value)

public Vulnerability.Detail.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 = 10;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpeUri(String value)

public Vulnerability.Detail.Builder setCpeUri(String value)

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Parameter
Name Description
value String

The cpeUri to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setCpeUriBytes(ByteString value)

public Vulnerability.Detail.Builder setCpeUriBytes(ByteString value)

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Parameter
Name Description
value ByteString

The bytes for cpeUri to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setDescription(String value)

public Vulnerability.Detail.Builder setDescription(String value)

A vendor-specific description of this note.

string description = 6;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Vulnerability.Detail.Builder setDescriptionBytes(ByteString value)

A vendor-specific description of this note.

string description = 6;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFixedLocation(VulnerabilityLocation value)

public Vulnerability.Detail.Builder setFixedLocation(VulnerabilityLocation value)

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

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

setFixedLocation(VulnerabilityLocation.Builder builderForValue)

public Vulnerability.Detail.Builder setFixedLocation(VulnerabilityLocation.Builder builderForValue)

The fix for this specific package version.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;

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

setIsObsolete(boolean value)

public Vulnerability.Detail.Builder setIsObsolete(boolean value)

Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.

bool is_obsolete = 9;

Parameter
Name Description
value boolean

The isObsolete to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setMaxAffectedVersion(Version value)

public Vulnerability.Detail.Builder setMaxAffectedVersion(Version value)

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

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

setMaxAffectedVersion(Version.Builder builderForValue)

public Vulnerability.Detail.Builder setMaxAffectedVersion(Version.Builder builderForValue)

The max version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version max_affected_version = 4;

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

setMinAffectedVersion(Version value)

public Vulnerability.Detail.Builder setMinAffectedVersion(Version value)

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

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

setMinAffectedVersion(Version.Builder builderForValue)

public Vulnerability.Detail.Builder setMinAffectedVersion(Version.Builder builderForValue)

The min version of the package in which the vulnerability exists.

.grafeas.v1beta1.package.Version min_affected_version = 3;

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

setPackage(String value)

public Vulnerability.Detail.Builder setPackage(String value)

Required. The name of the package where the vulnerability was found.

string package = 2;

Parameter
Name Description
value String

The package to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setPackageBytes(ByteString value)

public Vulnerability.Detail.Builder setPackageBytes(ByteString value)

Required. The name of the package where the vulnerability was found.

string package = 2;

Parameter
Name Description
value ByteString

The bytes for package to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setPackageType(String value)

public Vulnerability.Detail.Builder setPackageType(String value)

The type of package; whether native or non native(ruby gems, node.js packages etc).

string package_type = 8;

Parameter
Name Description
value String

The packageType to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setPackageTypeBytes(ByteString value)

public Vulnerability.Detail.Builder setPackageTypeBytes(ByteString value)

The type of package; whether native or non native(ruby gems, node.js packages etc).

string package_type = 8;

Parameter
Name Description
value ByteString

The bytes for packageType to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

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

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

setSeverityName(String value)

public Vulnerability.Detail.Builder setSeverityName(String value)

The severity (eg: distro assigned severity) for this vulnerability.

string severity_name = 5;

Parameter
Name Description
value String

The severityName to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setSeverityNameBytes(ByteString value)

public Vulnerability.Detail.Builder setSeverityNameBytes(ByteString value)

The severity (eg: distro assigned severity) for this vulnerability.

string severity_name = 5;

Parameter
Name Description
value ByteString

The bytes for severityName to set.

Returns
Type Description
Vulnerability.Detail.Builder

This builder for chaining.

setSourceUpdateTime(Timestamp value)

public Vulnerability.Detail.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 = 10;

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

setSourceUpdateTime(Timestamp.Builder builderForValue)

public Vulnerability.Detail.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 = 10;

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

setUnknownFields(UnknownFieldSet unknownFields)

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