Class Vulnerability.Detail (2.34.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
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

FIXED_LOCATION_FIELD_NUMBER

public static final int FIXED_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

IS_OBSOLETE_FIELD_NUMBER

public static final int IS_OBSOLETE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_AFFECTED_VERSION_FIELD_NUMBER

public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_AFFECTED_VERSION_FIELD_NUMBER

public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_FIELD_NUMBER

public static final int PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_TYPE_FIELD_NUMBER

public static final int PACKAGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_NAME_FIELD_NUMBER

public static final int SEVERITY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Vulnerability.Detail getDefaultInstance()
Returns
TypeDescription
Vulnerability.Detail

getDescriptor()

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

newBuilder()

public static Vulnerability.Detail.Builder newBuilder()
Returns
TypeDescription
Vulnerability.Detail.Builder

newBuilder(Vulnerability.Detail prototype)

public static Vulnerability.Detail.Builder newBuilder(Vulnerability.Detail prototype)
Parameter
NameDescription
prototypeVulnerability.Detail
Returns
TypeDescription
Vulnerability.Detail.Builder

parseDelimitedFrom(InputStream input)

public static Vulnerability.Detail parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Vulnerability.Detail parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Vulnerability.Detail parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Vulnerability.Detail parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Vulnerability.Detail parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Vulnerability.Detail parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability.Detail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Vulnerability.Detail
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The fix for this specific package version.

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

Returns
TypeDescription
VulnerabilityLocation

The fixedLocation.

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.

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.

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Vulnerability.Detail.Builder newBuilderForType()
Returns
TypeDescription
Vulnerability.Detail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Vulnerability.Detail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Vulnerability.Detail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Vulnerability.Detail.Builder toBuilder()
Returns
TypeDescription
Vulnerability.Detail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException