Class Details

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DetailsOrBuilder, Serializable

    public final class Details
    extends com.google.protobuf.GeneratedMessageV3
    implements DetailsOrBuilder
     Details of a vulnerability Occurrence.
     
    Protobuf type grafeas.v1beta1.vulnerability.Details
    See Also:
    Serialized Form
    • Field Detail

      • CVSS_SCORE_FIELD_NUMBER

        public static final int CVSS_SCORE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PACKAGE_ISSUE_FIELD_NUMBER

        public static final int PACKAGE_ISSUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SHORT_DESCRIPTION_FIELD_NUMBER

        public static final int SHORT_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LONG_DESCRIPTION_FIELD_NUMBER

        public static final int LONG_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RELATED_URLS_FIELD_NUMBER

        public static final int RELATED_URLS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EFFECTIVE_SEVERITY_FIELD_NUMBER

        public static final int EFFECTIVE_SEVERITY_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
      • getType

        public String getType()
         The type of package; whether native or non native(ruby gems, node.js
         packages etc)
         
        string type = 1;
        Specified by:
        getType in interface DetailsOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The type of package; whether native or non native(ruby gems, node.js
         packages etc)
         
        string type = 1;
        Specified by:
        getTypeBytes in interface DetailsOrBuilder
        Returns:
        The bytes for type.
      • getSeverityValue

        public int getSeverityValue()
         Output only. The note provider assigned Severity of the vulnerability.
         
        .grafeas.v1beta1.vulnerability.Severity severity = 2;
        Specified by:
        getSeverityValue in interface DetailsOrBuilder
        Returns:
        The enum numeric value on the wire for severity.
      • getSeverity

        public Severity getSeverity()
         Output only. The note provider assigned Severity of the vulnerability.
         
        .grafeas.v1beta1.vulnerability.Severity severity = 2;
        Specified by:
        getSeverity in interface DetailsOrBuilder
        Returns:
        The severity.
      • getCvssScore

        public float getCvssScore()
         Output only. The CVSS score of this vulnerability. CVSS score is on a
         scale of 0-10 where 0 indicates low severity and 10 indicates high
         severity.
         
        float cvss_score = 3;
        Specified by:
        getCvssScore in interface DetailsOrBuilder
        Returns:
        The cvssScore.
      • getPackageIssueList

        public List<PackageIssue> getPackageIssueList()
         Required. The set of affected locations and their fixes (if available)
         within the associated resource.
         
        repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
        Specified by:
        getPackageIssueList in interface DetailsOrBuilder
      • getPackageIssueOrBuilderList

        public List<? extends PackageIssueOrBuilder> getPackageIssueOrBuilderList()
         Required. The set of affected locations and their fixes (if available)
         within the associated resource.
         
        repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
        Specified by:
        getPackageIssueOrBuilderList in interface DetailsOrBuilder
      • getPackageIssueCount

        public int getPackageIssueCount()
         Required. The set of affected locations and their fixes (if available)
         within the associated resource.
         
        repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
        Specified by:
        getPackageIssueCount in interface DetailsOrBuilder
      • getPackageIssue

        public PackageIssue getPackageIssue​(int index)
         Required. The set of affected locations and their fixes (if available)
         within the associated resource.
         
        repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
        Specified by:
        getPackageIssue in interface DetailsOrBuilder
      • getPackageIssueOrBuilder

        public PackageIssueOrBuilder getPackageIssueOrBuilder​(int index)
         Required. The set of affected locations and their fixes (if available)
         within the associated resource.
         
        repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;
        Specified by:
        getPackageIssueOrBuilder in interface DetailsOrBuilder
      • getShortDescription

        public String getShortDescription()
         Output only. A one sentence description of this vulnerability.
         
        string short_description = 5;
        Specified by:
        getShortDescription in interface DetailsOrBuilder
        Returns:
        The shortDescription.
      • getShortDescriptionBytes

        public com.google.protobuf.ByteString getShortDescriptionBytes()
         Output only. A one sentence description of this vulnerability.
         
        string short_description = 5;
        Specified by:
        getShortDescriptionBytes in interface DetailsOrBuilder
        Returns:
        The bytes for shortDescription.
      • getLongDescription

        public String getLongDescription()
         Output only. A detailed description of this vulnerability.
         
        string long_description = 6;
        Specified by:
        getLongDescription in interface DetailsOrBuilder
        Returns:
        The longDescription.
      • getLongDescriptionBytes

        public com.google.protobuf.ByteString getLongDescriptionBytes()
         Output only. A detailed description of this vulnerability.
         
        string long_description = 6;
        Specified by:
        getLongDescriptionBytes in interface DetailsOrBuilder
        Returns:
        The bytes for longDescription.
      • getRelatedUrlsCount

        public int getRelatedUrlsCount()
         Output only. URLs related to this vulnerability.
         
        repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
        Specified by:
        getRelatedUrlsCount in interface DetailsOrBuilder
      • getRelatedUrls

        public RelatedUrl getRelatedUrls​(int index)
         Output only. URLs related to this vulnerability.
         
        repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;
        Specified by:
        getRelatedUrls in interface DetailsOrBuilder
      • getEffectiveSeverityValue

        public int getEffectiveSeverityValue()
         The distro assigned severity for this vulnerability when it is
         available, and note provider assigned severity when distro has not yet
         assigned a severity for this vulnerability.
         
        .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
        Specified by:
        getEffectiveSeverityValue in interface DetailsOrBuilder
        Returns:
        The enum numeric value on the wire for effectiveSeverity.
      • getEffectiveSeverity

        public Severity getEffectiveSeverity()
         The distro assigned severity for this vulnerability when it is
         available, and note provider assigned severity when distro has not yet
         assigned a severity for this vulnerability.
         
        .grafeas.v1beta1.vulnerability.Severity effective_severity = 8;
        Specified by:
        getEffectiveSeverity in interface DetailsOrBuilder
        Returns:
        The effectiveSeverity.
      • 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 Details parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Details parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Details parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        protected Details.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Details getDefaultInstance()
      • parser

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

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