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 class
Vulnerability.Builder
Vulnerability provides metadata about a security vulnerability in a Note.static class
Vulnerability.Detail
Identifies all appearances of this vulnerability in the package for a specific distro/location.static interface
Vulnerability.DetailOrBuilder
static class
Vulnerability.WindowsDetail
Protobuf typegrafeas.v1beta1.vulnerability.Vulnerability.WindowsDetail
static interface
Vulnerability.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 int
CVSS_SCORE_FIELD_NUMBER
static int
CVSS_V3_FIELD_NUMBER
static int
DETAILS_FIELD_NUMBER
static int
SEVERITY_FIELD_NUMBER
static int
SOURCE_UPDATE_TIME_FIELD_NUMBER
static int
WINDOWS_DETAILS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
float
getCvssScore()
The CVSS score for this vulnerability.CVSSv3
getCvssV3()
The full description of the CVSSv3.CVSSv3OrBuilder
getCvssV3OrBuilder()
The full description of the CVSSv3.static Vulnerability
getDefaultInstance()
Vulnerability
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Vulnerability.Detail
getDetails(int index)
All information about the package to specifically identify this vulnerability.int
getDetailsCount()
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.DetailOrBuilder
getDetailsOrBuilder(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()
int
getSerializedSize()
Severity
getSeverity()
Note provider assigned impact of the vulnerability.int
getSeverityValue()
Note provider assigned impact of the vulnerability.com.google.protobuf.Timestamp
getSourceUpdateTime()
The time this information was last changed at the source.com.google.protobuf.TimestampOrBuilder
getSourceUpdateTimeOrBuilder()
The time this information was last changed at the source.com.google.protobuf.UnknownFieldSet
getUnknownFields()
Vulnerability.WindowsDetail
getWindowsDetails(int index)
Windows details get their own format because the information format and model don't match a normal detail.int
getWindowsDetailsCount()
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.WindowsDetailOrBuilder
getWindowsDetailsOrBuilder(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.boolean
hasCvssV3()
The full description of the CVSSv3.int
hashCode()
boolean
hasSourceUpdateTime()
The time this information was last changed at the source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Vulnerability.Builder
newBuilder()
static Vulnerability.Builder
newBuilder(Vulnerability prototype)
Vulnerability.Builder
newBuilderForType()
protected Vulnerability.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Vulnerability
parseDelimitedFrom(InputStream input)
static Vulnerability
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability
parseFrom(byte[] data)
static Vulnerability
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability
parseFrom(com.google.protobuf.ByteString data)
static Vulnerability
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability
parseFrom(com.google.protobuf.CodedInputStream input)
static Vulnerability
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability
parseFrom(InputStream input)
static Vulnerability
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Vulnerability
parseFrom(ByteBuffer data)
static Vulnerability
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Vulnerability>
parser()
Vulnerability.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getCvssScore
public float getCvssScore()
The CVSS score for this vulnerability.
float cvss_score = 1;
- Specified by:
getCvssScore
in interfaceVulnerabilityOrBuilder
- Returns:
- The cvssScore.
-
getSeverityValue
public int getSeverityValue()
Note provider assigned impact of the vulnerability.
.grafeas.v1beta1.vulnerability.Severity severity = 2;
- Specified by:
getSeverityValue
in 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:
getSeverity
in 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:
getDetailsList
in 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:
getDetailsOrBuilderList
in 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:
getDetailsCount
in 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:
getDetails
in 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:
getDetailsOrBuilder
in interfaceVulnerabilityOrBuilder
-
hasCvssV3
public boolean hasCvssV3()
The full description of the CVSSv3.
.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;
- Specified by:
hasCvssV3
in 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:
getCvssV3
in interfaceVulnerabilityOrBuilder
- Returns:
- The cvssV3.
-
getCvssV3OrBuilder
public CVSSv3OrBuilder getCvssV3OrBuilder()
The full description of the CVSSv3.
.grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;
- Specified by:
getCvssV3OrBuilder
in 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:
getWindowsDetailsList
in 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:
getWindowsDetailsOrBuilderList
in 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:
getWindowsDetailsCount
in 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:
getWindowsDetails
in 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:
getWindowsDetailsOrBuilder
in 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:
hasSourceUpdateTime
in 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:
getSourceUpdateTime
in 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:
getSourceUpdateTimeOrBuilder
in interfaceVulnerabilityOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Vulnerability.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Vulnerability getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-