Class 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 type grafeas.v1beta1.vulnerability.Vulnerability
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.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 class com.google.protobuf.GeneratedMessageV3
      • getCvssScore

        public float getCvssScore()
         The CVSS score for this vulnerability.
         
        float cvss_score = 1;
        Specified by:
        getCvssScore in interface VulnerabilityOrBuilder
        Returns:
        The cvssScore.
      • getSeverityValue

        public int getSeverityValue()
         Note provider assigned impact of the vulnerability.
         
        .grafeas.v1beta1.vulnerability.Severity severity = 2;
        Specified by:
        getSeverityValue in interface VulnerabilityOrBuilder
        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 interface VulnerabilityOrBuilder
        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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • hasCvssV3

        public boolean hasCvssV3()
         The full description of the CVSSv3.
         
        .grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;
        Specified by:
        hasCvssV3 in interface VulnerabilityOrBuilder
        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 interface VulnerabilityOrBuilder
        Returns:
        The cvssV3.
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
      • 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 interface VulnerabilityOrBuilder
        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 interface VulnerabilityOrBuilder
        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 interface VulnerabilityOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Vulnerability.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Vulnerability.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Vulnerability.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Vulnerability getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder