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.UnusedPrivateParameterAbstractMessageLite.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, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic int getSeverityValue()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;getSeverityValue in interface VulnerabilityOccurrenceOrBuilderpublic Severity getSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;getSeverity in interface VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic String getShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;getShortDescription in interface VulnerabilityOccurrenceOrBuilderpublic ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;getShortDescriptionBytes in interface VulnerabilityOccurrenceOrBuilderpublic String getLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;getLongDescription in interface VulnerabilityOccurrenceOrBuilderpublic ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;getLongDescriptionBytes in interface VulnerabilityOccurrenceOrBuilderpublic List<RelatedUrl> getRelatedUrlsList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsList in interface VulnerabilityOccurrenceOrBuilderpublic List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsOrBuilderList in interface VulnerabilityOccurrenceOrBuilderpublic int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsCount in interface VulnerabilityOccurrenceOrBuilderpublic RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrls in interface VulnerabilityOccurrenceOrBuilderpublic RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;getRelatedUrlsOrBuilder in interface VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic 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 VulnerabilityOccurrenceOrBuilderpublic boolean getFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;getFixAvailable in interface VulnerabilityOccurrenceOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static VulnerabilityOccurrence parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VulnerabilityOccurrence parseFrom(InputStream input) throws IOException
IOExceptionpublic static VulnerabilityOccurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VulnerabilityOccurrence parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static VulnerabilityOccurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VulnerabilityOccurrence parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static VulnerabilityOccurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic VulnerabilityOccurrence.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static VulnerabilityOccurrence.Builder newBuilder()
public static VulnerabilityOccurrence.Builder newBuilder(VulnerabilityOccurrence prototype)
public VulnerabilityOccurrence.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected VulnerabilityOccurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static VulnerabilityOccurrence getDefaultInstance()
public static Parser<VulnerabilityOccurrence> parser()
public Parser<VulnerabilityOccurrence> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public VulnerabilityOccurrence getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.