Class PackageIssue (2.5.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
TypeDescription
int

FIXED_LOCATION_FIELD_NUMBER

public static final int FIXED_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_NAME_FIELD_NUMBER

public static final int SEVERITY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PackageIssue getDefaultInstance()
Returns
TypeDescription
PackageIssue

getDescriptor()

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

newBuilder()

public static PackageIssue.Builder newBuilder()
Returns
TypeDescription
PackageIssue.Builder

newBuilder(PackageIssue prototype)

public static PackageIssue.Builder newBuilder(PackageIssue prototype)
Parameter
NameDescription
prototypePackageIssue
Returns
TypeDescription
PackageIssue.Builder

parseDelimitedFrom(InputStream input)

public static PackageIssue parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PackageIssue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PackageIssue parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PackageIssue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PackageIssue parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PackageIssue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PackageIssue parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PackageIssue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PackageIssue parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PackageIssue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PackageIssue> parser()
Returns
TypeDescription
Parser<PackageIssue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAffectedLocation()

public VulnerabilityLocation getAffectedLocation()

Required. The location of the vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation

The affectedLocation.

getAffectedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()

Required. The location of the vulnerability.

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

Returns
TypeDescription
VulnerabilityLocationOrBuilder

getDefaultInstanceForType()

public PackageIssue getDefaultInstanceForType()
Returns
TypeDescription
PackageIssue

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation

The fixedLocation.

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
VulnerabilityLocationOrBuilder

getParserForType()

public Parser<PackageIssue> getParserForType()
Returns
TypeDescription
Parser<PackageIssue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for severityName.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAffectedLocation()

public boolean hasAffectedLocation()

Required. The location of the vulnerability.

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

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PackageIssue.Builder toBuilder()
Returns
TypeDescription
PackageIssue.Builder

writeTo(CodedOutputStream output)

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