Class Vulnerability.Detail

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grafeas.v1beta1.vulnerability.Vulnerability.Detail
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Vulnerability.DetailOrBuilder, Serializable
Enclosing class:
Vulnerability

public static final class Vulnerability.Detail extends com.google.protobuf.GeneratedMessage implements Vulnerability.DetailOrBuilder
 Identifies all appearances of this vulnerability in the package for a
 specific distro/location. For example: glibc in
 cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
 
Protobuf type grafeas.v1beta1.vulnerability.Vulnerability.Detail
See Also:
  • Field Details

    • CPE_URI_FIELD_NUMBER

      public static final int CPE_URI_FIELD_NUMBER
      See Also:
    • PACKAGE_FIELD_NUMBER

      public static final int PACKAGE_FIELD_NUMBER
      See Also:
    • MIN_AFFECTED_VERSION_FIELD_NUMBER

      public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER
      See Also:
    • MAX_AFFECTED_VERSION_FIELD_NUMBER

      public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER
      See Also:
    • SEVERITY_NAME_FIELD_NUMBER

      public static final int SEVERITY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • FIXED_LOCATION_FIELD_NUMBER

      public static final int FIXED_LOCATION_FIELD_NUMBER
      See Also:
    • PACKAGE_TYPE_FIELD_NUMBER

      public static final int PACKAGE_TYPE_FIELD_NUMBER
      See Also:
    • IS_OBSOLETE_FIELD_NUMBER

      public static final int IS_OBSOLETE_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
    • getCpeUri

      public String getCpeUri()
       Required. The CPE URI in
       [cpe format](https://cpe.mitre.org/specification/) in which the
       vulnerability manifests. Examples include distro or storage location for
       vulnerable jar.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUri in interface Vulnerability.DetailOrBuilder
      Returns:
      The cpeUri.
    • getCpeUriBytes

      public com.google.protobuf.ByteString getCpeUriBytes()
       Required. The CPE URI in
       [cpe format](https://cpe.mitre.org/specification/) in which the
       vulnerability manifests. Examples include distro or storage location for
       vulnerable jar.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUriBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for cpeUri.
    • getPackage

      public String getPackage()
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Specified by:
      getPackage in interface Vulnerability.DetailOrBuilder
      Returns:
      The package.
    • getPackageBytes

      public com.google.protobuf.ByteString getPackageBytes()
       Required. The name of the package where the vulnerability was found.
       
      string package = 2;
      Specified by:
      getPackageBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for package.
    • hasMinAffectedVersion

      public boolean hasMinAffectedVersion()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      hasMinAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the minAffectedVersion field is set.
    • getMinAffectedVersion

      public Version getMinAffectedVersion()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      getMinAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      The minAffectedVersion.
    • getMinAffectedVersionOrBuilder

      public VersionOrBuilder getMinAffectedVersionOrBuilder()
       The min version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version min_affected_version = 3;
      Specified by:
      getMinAffectedVersionOrBuilder in interface Vulnerability.DetailOrBuilder
    • hasMaxAffectedVersion

      public boolean hasMaxAffectedVersion()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      hasMaxAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the maxAffectedVersion field is set.
    • getMaxAffectedVersion

      public Version getMaxAffectedVersion()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      getMaxAffectedVersion in interface Vulnerability.DetailOrBuilder
      Returns:
      The maxAffectedVersion.
    • getMaxAffectedVersionOrBuilder

      public VersionOrBuilder getMaxAffectedVersionOrBuilder()
       The max version of the package in which the vulnerability exists.
       
      .grafeas.v1beta1.package.Version max_affected_version = 4;
      Specified by:
      getMaxAffectedVersionOrBuilder in interface Vulnerability.DetailOrBuilder
    • getSeverityName

      public String getSeverityName()
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Specified by:
      getSeverityName in interface Vulnerability.DetailOrBuilder
      Returns:
      The severityName.
    • getSeverityNameBytes

      public com.google.protobuf.ByteString getSeverityNameBytes()
       The severity (eg: distro assigned severity) for this vulnerability.
       
      string severity_name = 5;
      Specified by:
      getSeverityNameBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for severityName.
    • getDescription

      public String getDescription()
       A vendor-specific description of this note.
       
      string description = 6;
      Specified by:
      getDescription in interface Vulnerability.DetailOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A vendor-specific description of this note.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for description.
    • hasFixedLocation

      public boolean hasFixedLocation()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      hasFixedLocation in interface Vulnerability.DetailOrBuilder
      Returns:
      Whether the fixedLocation field is set.
    • getFixedLocation

      public VulnerabilityLocation getFixedLocation()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      getFixedLocation in interface Vulnerability.DetailOrBuilder
      Returns:
      The fixedLocation.
    • getFixedLocationOrBuilder

      public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
       The fix for this specific package version.
       
      .grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 7;
      Specified by:
      getFixedLocationOrBuilder in interface Vulnerability.DetailOrBuilder
    • getPackageType

      public String getPackageType()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Specified by:
      getPackageType in interface Vulnerability.DetailOrBuilder
      Returns:
      The packageType.
    • getPackageTypeBytes

      public com.google.protobuf.ByteString getPackageTypeBytes()
       The type of package; whether native or non native(ruby gems, node.js
       packages etc).
       
      string package_type = 8;
      Specified by:
      getPackageTypeBytes in interface Vulnerability.DetailOrBuilder
      Returns:
      The bytes for packageType.
    • getIsObsolete

      public boolean getIsObsolete()
       Whether this detail is obsolete. Occurrences are expected not to point to
       obsolete details.
       
      bool is_obsolete = 9;
      Specified by:
      getIsObsolete in interface Vulnerability.DetailOrBuilder
      Returns:
      The isObsolete.
    • 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 = 10;
      Specified by:
      hasSourceUpdateTime in interface Vulnerability.DetailOrBuilder
      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 = 10;
      Specified by:
      getSourceUpdateTime in interface Vulnerability.DetailOrBuilder
      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 = 10;
      Specified by:
      getSourceUpdateTimeOrBuilder in interface Vulnerability.DetailOrBuilder
    • 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.Detail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Vulnerability.Detail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Vulnerability.Detail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Vulnerability.Detail 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.Detail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Vulnerability.Detail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Vulnerability.Detail parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Vulnerability.Detail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Vulnerability.Detail parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Vulnerability.Detail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Vulnerability.Detail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Vulnerability.Detail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Vulnerability.Detail.Builder newBuilder()
    • newBuilder

      public static Vulnerability.Detail.Builder newBuilder(Vulnerability.Detail prototype)
    • toBuilder

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

      protected Vulnerability.Detail.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Vulnerability.Detail getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Vulnerability.Detail> parser()
    • getParserForType

      public com.google.protobuf.Parser<Vulnerability.Detail> 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.Detail getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder