Class PackageIssue (2.44.0)

public final class PackageIssue extends GeneratedMessageV3 implements PackageIssueOrBuilder

This message wraps a location affected by a vulnerability and its associated fix (if one is available).

Protobuf type grafeas.v1beta1.vulnerability.PackageIssue

Static Fields

AFFECTED_LOCATION_FIELD_NUMBER

public static final int AFFECTED_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

FIXED_LOCATION_FIELD_NUMBER

public static final int FIXED_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_NAME_FIELD_NUMBER

public static final int SEVERITY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PackageIssue getDefaultInstance()
Returns
Type Description
PackageIssue

getDescriptor()

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

newBuilder()

public static PackageIssue.Builder newBuilder()
Returns
Type Description
PackageIssue.Builder

newBuilder(PackageIssue prototype)

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

parseDelimitedFrom(InputStream input)

public static PackageIssue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PackageIssue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PackageIssue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PackageIssue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PackageIssue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PackageIssue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PackageIssue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PackageIssue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PackageIssue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PackageIssue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PackageIssue> parser()
Returns
Type Description
Parser<PackageIssue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAffectedLocation()

public VulnerabilityLocation getAffectedLocation()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
VulnerabilityLocation

The affectedLocation.

getAffectedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
VulnerabilityLocationOrBuilder

getDefaultInstanceForType()

public PackageIssue getDefaultInstanceForType()
Returns
Type Description
PackageIssue

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The location of the available fix for vulnerability.

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

Returns
Type Description
VulnerabilityLocation

The fixedLocation.

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The location of the available fix for vulnerability.

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

Returns
Type Description
VulnerabilityLocationOrBuilder

getParserForType()

public Parser<PackageIssue> getParserForType()
Returns
Type Description
Parser<PackageIssue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverityName()

public String getSeverityName()

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Returns
Type Description
String

The severityName.

getSeverityNameBytes()

public ByteString getSeverityNameBytes()

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Returns
Type Description
ByteString

The bytes for severityName.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasAffectedLocation()

public boolean hasAffectedLocation()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
boolean

Whether the affectedLocation field is set.

hasFixedLocation()

public boolean hasFixedLocation()

The location of the available fix for vulnerability.

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

Returns
Type Description
boolean

Whether the fixedLocation 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 PackageIssue.Builder newBuilderForType()
Returns
Type Description
PackageIssue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PackageIssue.Builder toBuilder()
Returns
Type Description
PackageIssue.Builder

writeTo(CodedOutputStream output)

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