public final class VulnerabilityOccurrence extends GeneratedMessageV3 implements VulnerabilityOccurrenceOrBuilder
An occurrence of a severity vulnerability on a resource.Protobuf type
grafeas.v1.VulnerabilityOccurrence
Modifier and Type | Class and Description |
---|---|
static class |
VulnerabilityOccurrence.Builder
An occurrence of a severity vulnerability on a resource.
|
static class |
VulnerabilityOccurrence.PackageIssue
A detail for a distro and package this vulnerability occurrence was found
in and its associated fix (if one is available).
|
static interface |
VulnerabilityOccurrence.PackageIssueOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CVSS_SCORE_FIELD_NUMBER |
static int |
EFFECTIVE_SEVERITY_FIELD_NUMBER |
static int |
FIX_AVAILABLE_FIELD_NUMBER |
static int |
LONG_DESCRIPTION_FIELD_NUMBER |
static int |
PACKAGE_ISSUE_FIELD_NUMBER |
static int |
RELATED_URLS_FIELD_NUMBER |
static int |
SEVERITY_FIELD_NUMBER |
static int |
SHORT_DESCRIPTION_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TYPE_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
public static final int CVSS_SCORE_FIELD_NUMBER
public static final int PACKAGE_ISSUE_FIELD_NUMBER
public static final int SHORT_DESCRIPTION_FIELD_NUMBER
public static final int LONG_DESCRIPTION_FIELD_NUMBER
public static final int RELATED_URLS_FIELD_NUMBER
public static final int EFFECTIVE_SEVERITY_FIELD_NUMBER
public static final int FIX_AVAILABLE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getType()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
getType
in interface VulnerabilityOccurrenceOrBuilder
public ByteString getTypeBytes()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
getTypeBytes
in interface VulnerabilityOccurrenceOrBuilder
public int getSeverityValue()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
getSeverityValue
in interface VulnerabilityOccurrenceOrBuilder
public Severity getSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
getSeverity
in interface VulnerabilityOccurrenceOrBuilder
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;
getCvssScore
in interface VulnerabilityOccurrenceOrBuilder
public List<VulnerabilityOccurrence.PackageIssue> getPackageIssueList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueList
in interface VulnerabilityOccurrenceOrBuilder
public List<? extends VulnerabilityOccurrence.PackageIssueOrBuilder> getPackageIssueOrBuilderList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueOrBuilderList
in interface VulnerabilityOccurrenceOrBuilder
public int getPackageIssueCount()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueCount
in interface VulnerabilityOccurrenceOrBuilder
public VulnerabilityOccurrence.PackageIssue getPackageIssue(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssue
in interface VulnerabilityOccurrenceOrBuilder
public VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(int index)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
getPackageIssueOrBuilder
in interface VulnerabilityOccurrenceOrBuilder
public String getShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
getShortDescription
in interface VulnerabilityOccurrenceOrBuilder
public ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
getShortDescriptionBytes
in interface VulnerabilityOccurrenceOrBuilder
public String getLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;
getLongDescription
in interface VulnerabilityOccurrenceOrBuilder
public ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;
getLongDescriptionBytes
in interface VulnerabilityOccurrenceOrBuilder
public List<RelatedUrl> getRelatedUrlsList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsList
in interface VulnerabilityOccurrenceOrBuilder
public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsOrBuilderList
in interface VulnerabilityOccurrenceOrBuilder
public int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsCount
in interface VulnerabilityOccurrenceOrBuilder
public RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrls
in interface VulnerabilityOccurrenceOrBuilder
public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
getRelatedUrlsOrBuilder
in interface VulnerabilityOccurrenceOrBuilder
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.v1.Severity effective_severity = 8;
getEffectiveSeverityValue
in interface VulnerabilityOccurrenceOrBuilder
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.v1.Severity effective_severity = 8;
getEffectiveSeverity
in interface VulnerabilityOccurrenceOrBuilder
public boolean getFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;
getFixAvailable
in interface VulnerabilityOccurrenceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static VulnerabilityOccurrence parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VulnerabilityOccurrence parseFrom(InputStream input) throws IOException
IOException
public static VulnerabilityOccurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static VulnerabilityOccurrence parseDelimitedFrom(InputStream input) throws IOException
IOException
public static VulnerabilityOccurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static VulnerabilityOccurrence parseFrom(CodedInputStream input) throws IOException
IOException
public static VulnerabilityOccurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public VulnerabilityOccurrence.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static VulnerabilityOccurrence.Builder newBuilder()
public static VulnerabilityOccurrence.Builder newBuilder(VulnerabilityOccurrence prototype)
public VulnerabilityOccurrence.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected VulnerabilityOccurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static VulnerabilityOccurrence getDefaultInstance()
public static Parser<VulnerabilityOccurrence> parser()
public Parser<VulnerabilityOccurrence> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public VulnerabilityOccurrence getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2019 Google LLC. All rights reserved.