Package io.grafeas.v1beta1.vulnerability
Class Vulnerability
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grafeas.v1beta1.vulnerability.Vulnerability
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VulnerabilityOrBuilder,Serializable
public final class Vulnerability extends com.google.protobuf.GeneratedMessageV3 implements VulnerabilityOrBuilder
Vulnerability provides metadata about a security vulnerability in a Note.
Protobuf typegrafeas.v1beta1.vulnerability.Vulnerability- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVulnerability.BuilderVulnerability provides metadata about a security vulnerability in a Note.static classVulnerability.DetailIdentifies all appearances of this vulnerability in the package for a specific distro/location.static interfaceVulnerability.DetailOrBuilderstatic classVulnerability.WindowsDetailProtobuf typegrafeas.v1beta1.vulnerability.Vulnerability.WindowsDetailstatic interfaceVulnerability.WindowsDetailOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCVSS_SCORE_FIELD_NUMBERstatic intCVSS_V3_FIELD_NUMBERstatic intDETAILS_FIELD_NUMBERstatic intSEVERITY_FIELD_NUMBERstatic intSOURCE_UPDATE_TIME_FIELD_NUMBERstatic intWINDOWS_DETAILS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)floatgetCvssScore()The CVSS score for this vulnerability.CVSSv3getCvssV3()The full description of the CVSSv3.CVSSv3OrBuildergetCvssV3OrBuilder()The full description of the CVSSv3.static VulnerabilitygetDefaultInstance()VulnerabilitygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Vulnerability.DetailgetDetails(int index)All information about the package to specifically identify this vulnerability.intgetDetailsCount()All information about the package to specifically identify this vulnerability.List<Vulnerability.Detail>getDetailsList()All information about the package to specifically identify this vulnerability.Vulnerability.DetailOrBuildergetDetailsOrBuilder(int index)All information about the package to specifically identify this vulnerability.List<? extends Vulnerability.DetailOrBuilder>getDetailsOrBuilderList()All information about the package to specifically identify this vulnerability.com.google.protobuf.Parser<Vulnerability>getParserForType()intgetSerializedSize()SeveritygetSeverity()Note provider assigned impact of the vulnerability.intgetSeverityValue()Note provider assigned impact of the vulnerability.com.google.protobuf.TimestampgetSourceUpdateTime()The time this information was last changed at the source.com.google.protobuf.TimestampOrBuildergetSourceUpdateTimeOrBuilder()The time this information was last changed at the source.com.google.protobuf.UnknownFieldSetgetUnknownFields()Vulnerability.WindowsDetailgetWindowsDetails(int index)Windows details get their own format because the information format and model don't match a normal detail.intgetWindowsDetailsCount()Windows details get their own format because the information format and model don't match a normal detail.List<Vulnerability.WindowsDetail>getWindowsDetailsList()Windows details get their own format because the information format and model don't match a normal detail.Vulnerability.WindowsDetailOrBuildergetWindowsDetailsOrBuilder(int index)Windows details get their own format because the information format and model don't match a normal detail.List<? extends Vulnerability.WindowsDetailOrBuilder>getWindowsDetailsOrBuilderList()Windows details get their own format because the information format and model don't match a normal detail.booleanhasCvssV3()The full description of the CVSSv3.inthashCode()booleanhasSourceUpdateTime()The time this information was last changed at the source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Vulnerability.BuildernewBuilder()static Vulnerability.BuildernewBuilder(Vulnerability prototype)Vulnerability.BuildernewBuilderForType()protected Vulnerability.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VulnerabilityparseDelimitedFrom(InputStream input)static VulnerabilityparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VulnerabilityparseFrom(byte[] data)static VulnerabilityparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VulnerabilityparseFrom(com.google.protobuf.ByteString data)static VulnerabilityparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VulnerabilityparseFrom(com.google.protobuf.CodedInputStream input)static VulnerabilityparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VulnerabilityparseFrom(InputStream input)static VulnerabilityparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VulnerabilityparseFrom(ByteBuffer data)static VulnerabilityparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Vulnerability>parser()Vulnerability.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CVSS_SCORE_FIELD_NUMBER
public static final int CVSS_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DETAILS_FIELD_NUMBER
public static final int DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CVSS_V3_FIELD_NUMBER
public static final int CVSS_V3_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WINDOWS_DETAILS_FIELD_NUMBER
public static final int WINDOWS_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_UPDATE_TIME_FIELD_NUMBER
public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCvssScore
public float getCvssScore()
The CVSS score for this vulnerability.
float cvss_score = 1;- Specified by:
getCvssScorein interfaceVulnerabilityOrBuilder- Returns:
- The cvssScore.
-
getSeverityValue
public int getSeverityValue()
Note provider assigned impact of the vulnerability.
.grafeas.v1beta1.vulnerability.Severity severity = 2;- Specified by:
getSeverityValuein interfaceVulnerabilityOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
getSeverity
public Severity getSeverity()
Note provider assigned impact of the vulnerability.
.grafeas.v1beta1.vulnerability.Severity severity = 2;- Specified by:
getSeverityin interfaceVulnerabilityOrBuilder- Returns:
- The severity.
-
getDetailsList
public List<Vulnerability.Detail> getDetailsList()
All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;- Specified by:
getDetailsListin interfaceVulnerabilityOrBuilder
-
getDetailsOrBuilderList
public List<? extends Vulnerability.DetailOrBuilder> getDetailsOrBuilderList()
All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;- Specified by:
getDetailsOrBuilderListin interfaceVulnerabilityOrBuilder
-
getDetailsCount
public int getDetailsCount()
All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;- Specified by:
getDetailsCountin interfaceVulnerabilityOrBuilder
-
getDetails
public Vulnerability.Detail getDetails(int index)
All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;- Specified by:
getDetailsin interfaceVulnerabilityOrBuilder
-
getDetailsOrBuilder
public Vulnerability.DetailOrBuilder getDetailsOrBuilder(int index)
All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.Detail details = 3;- Specified by:
getDetailsOrBuilderin interfaceVulnerabilityOrBuilder
-
hasCvssV3
public boolean hasCvssV3()
The full description of the CVSSv3.
.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;- Specified by:
hasCvssV3in interfaceVulnerabilityOrBuilder- Returns:
- Whether the cvssV3 field is set.
-
getCvssV3
public CVSSv3 getCvssV3()
The full description of the CVSSv3.
.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;- Specified by:
getCvssV3in interfaceVulnerabilityOrBuilder- Returns:
- The cvssV3.
-
getCvssV3OrBuilder
public CVSSv3OrBuilder getCvssV3OrBuilder()
The full description of the CVSSv3.
.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;- Specified by:
getCvssV3OrBuilderin interfaceVulnerabilityOrBuilder
-
getWindowsDetailsList
public List<Vulnerability.WindowsDetail> getWindowsDetailsList()
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;- Specified by:
getWindowsDetailsListin interfaceVulnerabilityOrBuilder
-
getWindowsDetailsOrBuilderList
public List<? extends Vulnerability.WindowsDetailOrBuilder> getWindowsDetailsOrBuilderList()
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;- Specified by:
getWindowsDetailsOrBuilderListin interfaceVulnerabilityOrBuilder
-
getWindowsDetailsCount
public int getWindowsDetailsCount()
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;- Specified by:
getWindowsDetailsCountin interfaceVulnerabilityOrBuilder
-
getWindowsDetails
public Vulnerability.WindowsDetail getWindowsDetails(int index)
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;- Specified by:
getWindowsDetailsin interfaceVulnerabilityOrBuilder
-
getWindowsDetailsOrBuilder
public Vulnerability.WindowsDetailOrBuilder getWindowsDetailsOrBuilder(int index)
Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
repeated .grafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail windows_details = 5;- Specified by:
getWindowsDetailsOrBuilderin interfaceVulnerabilityOrBuilder
-
hasSourceUpdateTime
public boolean hasSourceUpdateTime()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 6;- Specified by:
hasSourceUpdateTimein interfaceVulnerabilityOrBuilder- Returns:
- Whether the sourceUpdateTime field is set.
-
getSourceUpdateTime
public com.google.protobuf.Timestamp getSourceUpdateTime()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 6;- Specified by:
getSourceUpdateTimein interfaceVulnerabilityOrBuilder- Returns:
- The sourceUpdateTime.
-
getSourceUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSourceUpdateTimeOrBuilder()
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
.google.protobuf.Timestamp source_update_time = 6;- Specified by:
getSourceUpdateTimeOrBuilderin interfaceVulnerabilityOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Vulnerability parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Vulnerability parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Vulnerability parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Vulnerability parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Vulnerability parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Vulnerability.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Vulnerability.Builder newBuilder()
-
newBuilder
public static Vulnerability.Builder newBuilder(Vulnerability prototype)
-
toBuilder
public Vulnerability.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Vulnerability.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Vulnerability getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Vulnerability> parser()
-
getParserForType
public com.google.protobuf.Parser<Vulnerability> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Vulnerability getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-