Class Vulnerability.Detail.Builder (2.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Vulnerability.Detail build()
Returns
TypeDescription
Vulnerability.Detail

buildPartial()

public Vulnerability.Detail buildPartial()
Returns
TypeDescription
Vulnerability.Detail

clear()

public Vulnerability.Detail.Builder clear()
Returns
TypeDescription
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
TypeDescription
Vulnerability.Detail.Builder

This builder for chaining.

clearDescription()

public Vulnerability.Detail.Builder clearDescription()

A vendor-specific description of this note.

string description = 6;

Returns
TypeDescription
Vulnerability.Detail.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Vulnerability.Detail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Vulnerability.Detail.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Vulnerability.Detail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Vulnerability.Detail.Builder

clone()

public Vulnerability.Detail.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public Vulnerability.Detail getDefaultInstanceForType()
Returns
TypeDescription
Vulnerability.Detail

getDescription()

public String getDescription()

A vendor-specific description of this note.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A vendor-specific description of this note.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The fix for this specific package version.

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

Returns
TypeDescription
VulnerabilityLocation

The fixedLocation.

getFixedLocationBuilder()

public VulnerabilityLocation.Builder getFixedLocationBuilder()

The fix for this specific package version.

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

Returns
TypeDescription
VulnerabilityLocation.Builder

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The fix for this specific package version.

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

Returns
TypeDescription
VulnerabilityLocationOrBuilder

getIsObsolete()

public boolean getIsObsolete()

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

bool is_obsolete = 9;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VersionOrBuilder

getPackage()

public String getPackage()

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

string package = 2;

Returns
TypeDescription
String

The package.

getPackageBytes()

public ByteString getPackageBytes()

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

string package = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for packageType.

getSeverityName()

public String getSeverityName()

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

string severity_name = 5;

Returns
TypeDescription
String

The severityName.

getSeverityNameBytes()

public ByteString getSeverityNameBytes()

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

string severity_name = 5;

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

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

Returns
TypeDescription
TimestampOrBuilder

hasFixedLocation()

public boolean hasFixedLocation()

The fix for this specific package version.

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Vulnerability.Detail other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The cpeUri to set.

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

The bytes for cpeUri to set.

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

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
Vulnerability.Detail.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Vulnerability.Detail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueVulnerabilityLocation
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityLocation.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The isObsolete to set.

Returns
TypeDescription
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
NameDescription
valueVersion
Returns
TypeDescription
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
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
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
NameDescription
valueVersion
Returns
TypeDescription
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
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
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
NameDescription
valueString

The package to set.

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

The bytes for package to set.

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

The packageType to set.

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

The bytes for packageType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The severityName to set.

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

The bytes for severityName to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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