Class 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.GeneratedMessageV3
    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:
    Serialized Form
    • Field Detail

      • MIN_AFFECTED_VERSION_FIELD_NUMBER

        public static final int MIN_AFFECTED_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_AFFECTED_VERSION_FIELD_NUMBER

        public static final int MAX_AFFECTED_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SEVERITY_NAME_FIELD_NUMBER

        public static final int SEVERITY_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FIXED_LOCATION_FIELD_NUMBER

        public static final int FIXED_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PACKAGE_TYPE_FIELD_NUMBER

        public static final int PACKAGE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IS_OBSOLETE_FIELD_NUMBER

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

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

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