Class Vulnerability.Detail (2.48.0)

public static final class Vulnerability.Detail extends GeneratedMessageV3 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 Fields

CPE_URI_FIELD_NUMBER

public static final int CPE_URI_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

FIXED_LOCATION_FIELD_NUMBER

public static final int FIXED_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

IS_OBSOLETE_FIELD_NUMBER

public static final int IS_OBSOLETE_FIELD_NUMBER
Field Value
Type Description
int

MAX_AFFECTED_VERSION_FIELD_NUMBER

public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER
Field Value
Type Description
int

MIN_AFFECTED_VERSION_FIELD_NUMBER

public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_FIELD_NUMBER

public static final int PACKAGE_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_TYPE_FIELD_NUMBER

public static final int PACKAGE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_NAME_FIELD_NUMBER

public static final int SEVERITY_NAME_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Vulnerability.Detail getDefaultInstance()
Returns
Type Description
Vulnerability.Detail

getDescriptor()

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

newBuilder()

public static Vulnerability.Detail.Builder newBuilder()
Returns
Type Description
Vulnerability.Detail.Builder

newBuilder(Vulnerability.Detail prototype)

public static Vulnerability.Detail.Builder newBuilder(Vulnerability.Detail prototype)
Parameter
Name Description
prototype Vulnerability.Detail
Returns
Type Description
Vulnerability.Detail.Builder

parseDelimitedFrom(InputStream input)

public static Vulnerability.Detail parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Vulnerability.Detail parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Vulnerability.Detail parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Vulnerability.Detail parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Vulnerability.Detail parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Vulnerability.Detail parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability.Detail
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Vulnerability.Detail> parser()
Returns
Type Description
Parser<Detail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The fix for this specific package version.

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

Returns
Type Description
VulnerabilityLocation

The fixedLocation.

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.

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.

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.

getParserForType()

public Parser<Vulnerability.Detail> getParserForType()
Returns
Type Description
Parser<Detail>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Vulnerability.Detail.Builder newBuilderForType()
Returns
Type Description
Vulnerability.Detail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Vulnerability.Detail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Vulnerability.Detail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Vulnerability.Detail.Builder toBuilder()
Returns
Type Description
Vulnerability.Detail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException