/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/vulnerability.proto package io.grafeas.v1; public interface VulnerabilityOccurrenceOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityOccurrence) com.google.protobuf.MessageOrBuilder { /** * * *
* The type of package; whether native or non native (e.g., ruby gems, node.js * packages, etc.). ** *
string type = 1;
*
* @return The type.
*/
java.lang.String getType();
/**
*
*
* * The type of package; whether native or non native (e.g., ruby gems, node.js * packages, etc.). ** *
string type = 1;
*
* @return The bytes for type.
*/
com.google.protobuf.ByteString getTypeBytes();
/**
*
*
* * Output only. The note provider assigned severity of this vulnerability. ** *
.grafeas.v1.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
int getSeverityValue();
/**
*
*
* * Output only. The note provider assigned severity of this vulnerability. ** *
.grafeas.v1.Severity severity = 2;
*
* @return The severity.
*/
io.grafeas.v1.Severity getSeverity();
/**
*
*
* * 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;
*
* @return The cvssScore.
*/
float getCvssScore();
/**
*
*
* * The cvss v3 score for the vulnerability. ** *
.grafeas.v1.CVSS cvssv3 = 10;
*
* @return Whether the cvssv3 field is set.
*/
boolean hasCvssv3();
/**
*
*
* * The cvss v3 score for the vulnerability. ** *
.grafeas.v1.CVSS cvssv3 = 10;
*
* @return The cvssv3.
*/
io.grafeas.v1.CVSS getCvssv3();
/**
*
*
* * The cvss v3 score for the vulnerability. ** *
.grafeas.v1.CVSS cvssv3 = 10;
*/
io.grafeas.v1.CVSSOrBuilder getCvssv3OrBuilder();
/**
*
*
* * Required. The set of affected locations and their fixes (if available) * within the associated resource. ** *
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
*/
java.util.List* Required. The set of affected locations and their fixes (if available) * within the associated resource. ** *
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
*/
io.grafeas.v1.VulnerabilityOccurrence.PackageIssue getPackageIssue(int index);
/**
*
*
* * Required. The set of affected locations and their fixes (if available) * within the associated resource. ** *
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
*/
int getPackageIssueCount();
/**
*
*
* * Required. The set of affected locations and their fixes (if available) * within the associated resource. ** *
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
*/
java.util.List extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder>
getPackageIssueOrBuilderList();
/**
*
*
* * Required. The set of affected locations and their fixes (if available) * within the associated resource. ** *
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
*/
io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(int index);
/**
*
*
* * Output only. A one sentence description of this vulnerability. ** *
string short_description = 5;
*
* @return The shortDescription.
*/
java.lang.String getShortDescription();
/**
*
*
* * Output only. A one sentence description of this vulnerability. ** *
string short_description = 5;
*
* @return The bytes for shortDescription.
*/
com.google.protobuf.ByteString getShortDescriptionBytes();
/**
*
*
* * Output only. A detailed description of this vulnerability. ** *
string long_description = 6;
*
* @return The longDescription.
*/
java.lang.String getLongDescription();
/**
*
*
* * Output only. A detailed description of this vulnerability. ** *
string long_description = 6;
*
* @return The bytes for longDescription.
*/
com.google.protobuf.ByteString getLongDescriptionBytes();
/**
*
*
* * Output only. URLs related to this vulnerability. ** *
repeated .grafeas.v1.RelatedUrl related_urls = 7;
*/
java.util.List* Output only. URLs related to this vulnerability. ** *
repeated .grafeas.v1.RelatedUrl related_urls = 7;
*/
io.grafeas.v1.RelatedUrl getRelatedUrls(int index);
/**
*
*
* * Output only. URLs related to this vulnerability. ** *
repeated .grafeas.v1.RelatedUrl related_urls = 7;
*/
int getRelatedUrlsCount();
/**
*
*
* * Output only. URLs related to this vulnerability. ** *
repeated .grafeas.v1.RelatedUrl related_urls = 7;
*/
java.util.List extends io.grafeas.v1.RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList();
/**
*
*
* * Output only. URLs related to this vulnerability. ** *
repeated .grafeas.v1.RelatedUrl related_urls = 7;
*/
io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index);
/**
*
*
* * The distro assigned severity for this vulnerability when it is available, * otherwise this is the note provider assigned severity. * When there are multiple PackageIssues for this vulnerability, they can have * different effective severities because some might be provided by the distro * while others are provided by the language ecosystem for a language pack. * For this reason, it is advised to use the effective severity on the * PackageIssue level. In the case where multiple PackageIssues have differing * effective severities, this field should be the highest severity for any of * the PackageIssues. ** *
.grafeas.v1.Severity effective_severity = 8;
*
* @return The enum numeric value on the wire for effectiveSeverity.
*/
int getEffectiveSeverityValue();
/**
*
*
* * The distro assigned severity for this vulnerability when it is available, * otherwise this is the note provider assigned severity. * When there are multiple PackageIssues for this vulnerability, they can have * different effective severities because some might be provided by the distro * while others are provided by the language ecosystem for a language pack. * For this reason, it is advised to use the effective severity on the * PackageIssue level. In the case where multiple PackageIssues have differing * effective severities, this field should be the highest severity for any of * the PackageIssues. ** *
.grafeas.v1.Severity effective_severity = 8;
*
* @return The effectiveSeverity.
*/
io.grafeas.v1.Severity getEffectiveSeverity();
/**
*
*
* * Output only. Whether at least one of the affected packages has a fix * available. ** *
bool fix_available = 9;
*
* @return The fixAvailable.
*/
boolean getFixAvailable();
/**
*
*
* * Output only. CVSS version used to populate cvss_score and severity. ** *
.grafeas.v1.CVSSVersion cvss_version = 11;
*
* @return The enum numeric value on the wire for cvssVersion.
*/
int getCvssVersionValue();
/**
*
*
* * Output only. CVSS version used to populate cvss_score and severity. ** *
.grafeas.v1.CVSSVersion cvss_version = 11;
*
* @return The cvssVersion.
*/
io.grafeas.v1.CVSSVersion getCvssVersion();
/**
*
*
* * The cvss v2 score for the vulnerability. ** *
.grafeas.v1.CVSS cvss_v2 = 12;
*
* @return Whether the cvssV2 field is set.
*/
boolean hasCvssV2();
/**
*
*
* * The cvss v2 score for the vulnerability. ** *
.grafeas.v1.CVSS cvss_v2 = 12;
*
* @return The cvssV2.
*/
io.grafeas.v1.CVSS getCvssV2();
/**
*
*
* * The cvss v2 score for the vulnerability. ** *
.grafeas.v1.CVSS cvss_v2 = 12;
*/
io.grafeas.v1.CVSSOrBuilder getCvssV2OrBuilder();
/**
* .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
*
* @return Whether the vexAssessment field is set.
*/
boolean hasVexAssessment();
/**
* .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
*
* @return The vexAssessment.
*/
io.grafeas.v1.VulnerabilityOccurrence.VexAssessment getVexAssessment();
/** .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; */
io.grafeas.v1.VulnerabilityOccurrence.VexAssessmentOrBuilder getVexAssessmentOrBuilder();
}