Class Details (2.12.0)

public final class Details extends GeneratedMessageV3 implements DetailsOrBuilder

Details of a vulnerability Occurrence.

Protobuf type grafeas.v1beta1.vulnerability.Details

Implements

DetailsOrBuilder

Static Fields

CVSS_SCORE_FIELD_NUMBER

public static final int CVSS_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

EFFECTIVE_SEVERITY_FIELD_NUMBER

public static final int EFFECTIVE_SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

LONG_DESCRIPTION_FIELD_NUMBER

public static final int LONG_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_ISSUE_FIELD_NUMBER

public static final int PACKAGE_ISSUE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RELATED_URLS_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

SHORT_DESCRIPTION_FIELD_NUMBER

public static final int SHORT_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Details getDefaultInstance()
Returns
TypeDescription
Details

getDescriptor()

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

newBuilder()

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

newBuilder(Details prototype)

public static Details.Builder newBuilder(Details prototype)
Parameter
NameDescription
prototypeDetails
Returns
TypeDescription
Details.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCvssScore()

public float getCvssScore()

Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 3;

Returns
TypeDescription
float

The cvssScore.

getDefaultInstanceForType()

public Details getDefaultInstanceForType()
Returns
TypeDescription
Details

getEffectiveSeverity()

public Severity getEffectiveSeverity()

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Returns
TypeDescription
Severity

The effectiveSeverity.

getEffectiveSeverityValue()

public int getEffectiveSeverityValue()

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for effectiveSeverity.

getLongDescription()

public String getLongDescription()

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
TypeDescription
String

The longDescription.

getLongDescriptionBytes()

public ByteString getLongDescriptionBytes()

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
TypeDescription
ByteString

The bytes for longDescription.

getPackageIssue(int index)

public PackageIssue getPackageIssue(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssue

getPackageIssueCount()

public int getPackageIssueCount()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
int

getPackageIssueList()

public List<PackageIssue> getPackageIssueList()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
List<PackageIssue>

getPackageIssueOrBuilder(int index)

public PackageIssueOrBuilder getPackageIssueOrBuilder(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssueOrBuilder

getPackageIssueOrBuilderList()

public List<? extends PackageIssueOrBuilder> getPackageIssueOrBuilderList()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.vulnerability.PackageIssueOrBuilder>

getParserForType()

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

getRelatedUrls(int index)

public RelatedUrl getRelatedUrls(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrl

getRelatedUrlsCount()

public int getRelatedUrlsCount()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
int

getRelatedUrlsList()

public List<RelatedUrl> getRelatedUrlsList()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
List<RelatedUrl>

getRelatedUrlsOrBuilder(int index)

public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrlOrBuilder

getRelatedUrlsOrBuilderList()

public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.common.RelatedUrlOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public Severity getSeverity()

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getShortDescription()

public String getShortDescription()

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
TypeDescription
String

The shortDescription.

getShortDescriptionBytes()

public ByteString getShortDescriptionBytes()

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
TypeDescription
ByteString

The bytes for shortDescription.

getType()

public String getType()

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 Details.Builder newBuilderForType()
Returns
TypeDescription
Details.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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