Class Vulnerability

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class Vulnerability extends com.google.protobuf.GeneratedMessage implements VulnerabilityOrBuilder
 Vulnerability provides metadata about a security vulnerability in a Note.
 
Protobuf type grafeas.v1beta1.vulnerability.Vulnerability
See Also:
  • Field Details

    • CVSS_SCORE_FIELD_NUMBER

      public static final int CVSS_SCORE_FIELD_NUMBER
      See Also:
    • SEVERITY_FIELD_NUMBER

      public static final int SEVERITY_FIELD_NUMBER
      See Also:
    • DETAILS_FIELD_NUMBER

      public static final int DETAILS_FIELD_NUMBER
      See Also:
    • CVSS_V3_FIELD_NUMBER

      public static final int CVSS_V3_FIELD_NUMBER
      See Also:
    • WINDOWS_DETAILS_FIELD_NUMBER

      public static final int WINDOWS_DETAILS_FIELD_NUMBER
      See Also:
    • SOURCE_UPDATE_TIME_FIELD_NUMBER

      public static final int SOURCE_UPDATE_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • getCvssV3OrBuilder

      public CVSSv3OrBuilder getCvssV3OrBuilder()
       The full description of the CVSSv3.
       
      .grafeas.v1beta1.vulnerability.CVSSv3 cvss_v3 = 4;
      Specified by:
      getCvssV3OrBuilder in interface VulnerabilityOrBuilder
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Vulnerability.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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