- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.5
- 2.3.1
- 2.2.3
- 2.1.3
public static final class VulnerabilityOccurrence.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrence.Builder> implements VulnerabilityOccurrenceOrBuilder
An occurrence of a severity vulnerability on a resource.
Protobuf type grafeas.v1.VulnerabilityOccurrence
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VulnerabilityOccurrence.BuilderImplements
VulnerabilityOccurrenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllPackageIssue(Iterable<? extends VulnerabilityOccurrence.PackageIssue> values)
public VulnerabilityOccurrence.Builder addAllPackageIssue(Iterable<? extends VulnerabilityOccurrence.PackageIssue> values)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssue> |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addAllRelatedUrls(Iterable<? extends RelatedUrl> values)
public VulnerabilityOccurrence.Builder addAllRelatedUrls(Iterable<? extends RelatedUrl> values)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends io.grafeas.v1.RelatedUrl> |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
public VulnerabilityOccurrence.Builder addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameters | |
---|---|
Name | Description |
index | int |
value | VulnerabilityOccurrence.PackageIssue |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
public VulnerabilityOccurrence.Builder addPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | VulnerabilityOccurrence.PackageIssue.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addPackageIssue(VulnerabilityOccurrence.PackageIssue value)
public VulnerabilityOccurrence.Builder addPackageIssue(VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameter | |
---|---|
Name | Description |
value | VulnerabilityOccurrence.PackageIssue |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addPackageIssue(VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
public VulnerabilityOccurrence.Builder addPackageIssue(VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameter | |
---|---|
Name | Description |
builderForValue | VulnerabilityOccurrence.PackageIssue.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addPackageIssueBuilder()
public VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addPackageIssueBuilder(int index)
public VulnerabilityOccurrence.PackageIssue.Builder addPackageIssueBuilder(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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addRelatedUrls(int index, RelatedUrl value)
public VulnerabilityOccurrence.Builder addRelatedUrls(int index, RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameters | |
---|---|
Name | Description |
index | int |
value | RelatedUrl |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addRelatedUrls(int index, RelatedUrl.Builder builderForValue)
public VulnerabilityOccurrence.Builder addRelatedUrls(int index, RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | RelatedUrl.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addRelatedUrls(RelatedUrl value)
public VulnerabilityOccurrence.Builder addRelatedUrls(RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
value | RelatedUrl |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addRelatedUrls(RelatedUrl.Builder builderForValue)
public VulnerabilityOccurrence.Builder addRelatedUrls(RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | RelatedUrl.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
addRelatedUrlsBuilder()
public RelatedUrl.Builder addRelatedUrlsBuilder()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
RelatedUrl.Builder |
addRelatedUrlsBuilder(int index)
public RelatedUrl.Builder addRelatedUrlsBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RelatedUrl.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
build()
public VulnerabilityOccurrence build()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence |
buildPartial()
public VulnerabilityOccurrence buildPartial()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence |
clear()
public VulnerabilityOccurrence.Builder clear()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearCvssScore()
public VulnerabilityOccurrence.Builder clearCvssScore()
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;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearCvssV2()
public VulnerabilityOccurrence.Builder clearCvssV2()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearCvssVersion()
public VulnerabilityOccurrence.Builder clearCvssVersion()
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearCvssv3()
public VulnerabilityOccurrence.Builder clearCvssv3()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearEffectiveSeverity()
public VulnerabilityOccurrence.Builder clearEffectiveSeverity()
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;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public VulnerabilityOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearFixAvailable()
public VulnerabilityOccurrence.Builder clearFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearLongDescription()
public VulnerabilityOccurrence.Builder clearLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public VulnerabilityOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearPackageIssue()
public VulnerabilityOccurrence.Builder clearPackageIssue()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearRelatedUrls()
public VulnerabilityOccurrence.Builder clearRelatedUrls()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clearSeverity()
public VulnerabilityOccurrence.Builder clearSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearShortDescription()
public VulnerabilityOccurrence.Builder clearShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearType()
public VulnerabilityOccurrence.Builder clearType()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
clearVexAssessment()
public VulnerabilityOccurrence.Builder clearVexAssessment()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
clone()
public VulnerabilityOccurrence.Builder clone()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
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;
Returns | |
---|---|
Type | Description |
float | The cvssScore. |
getCvssV2()
public CVSS getCvssV2()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Returns | |
---|---|
Type | Description |
CVSS | The cvssV2. |
getCvssV2Builder()
public CVSS.Builder getCvssV2Builder()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Returns | |
---|---|
Type | Description |
CVSS.Builder |
getCvssV2OrBuilder()
public CVSSOrBuilder getCvssV2OrBuilder()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Returns | |
---|---|
Type | Description |
CVSSOrBuilder |
getCvssVersion()
public CVSSVersion getCvssVersion()
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
Returns | |
---|---|
Type | Description |
CVSSVersion | The cvssVersion. |
getCvssVersionValue()
public int getCvssVersionValue()
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for cvssVersion. |
getCvssv3()
public CVSS getCvssv3()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Returns | |
---|---|
Type | Description |
CVSS | The cvssv3. |
getCvssv3Builder()
public CVSS.Builder getCvssv3Builder()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Returns | |
---|---|
Type | Description |
CVSS.Builder |
getCvssv3OrBuilder()
public CVSSOrBuilder getCvssv3OrBuilder()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Returns | |
---|---|
Type | Description |
CVSSOrBuilder |
getDefaultInstanceForType()
public VulnerabilityOccurrence getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEffectiveSeverity()
public Severity getEffectiveSeverity()
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;
Returns | |
---|---|
Type | Description |
Severity | The effectiveSeverity. |
getEffectiveSeverityValue()
public 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;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for effectiveSeverity. |
getFixAvailable()
public boolean getFixAvailable()
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;
Returns | |
---|---|
Type | Description |
boolean | The fixAvailable. |
getLongDescription()
public String getLongDescription()
Output only. A detailed description of this vulnerability.
string long_description = 6;
Returns | |
---|---|
Type | Description |
String | The longDescription. |
getLongDescriptionBytes()
public ByteString getLongDescriptionBytes()
Output only. A detailed description of this vulnerability.
string long_description = 6;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for longDescription. |
getPackageIssue(int index)
public 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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue |
getPackageIssueBuilder(int index)
public VulnerabilityOccurrence.PackageIssue.Builder getPackageIssueBuilder(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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
getPackageIssueBuilderList()
public List<VulnerabilityOccurrence.PackageIssue.Builder> getPackageIssueBuilderList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Returns | |
---|---|
Type | Description |
List<Builder> |
getPackageIssueCount()
public 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;
Returns | |
---|---|
Type | Description |
int |
getPackageIssueList()
public List<VulnerabilityOccurrence.PackageIssue> getPackageIssueList()
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Returns | |
---|---|
Type | Description |
List<PackageIssue> |
getPackageIssueOrBuilder(int index)
public VulnerabilityOccurrence.PackageIssueOrBuilder getPackageIssueOrBuilder(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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssueOrBuilder |
getPackageIssueOrBuilderList()
public List<? extends 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;
Returns | |
---|---|
Type | Description |
List<? extends io.grafeas.v1.VulnerabilityOccurrence.PackageIssueOrBuilder> |
getRelatedUrls(int index)
public RelatedUrl getRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RelatedUrl |
getRelatedUrlsBuilder(int index)
public RelatedUrl.Builder getRelatedUrlsBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RelatedUrl.Builder |
getRelatedUrlsBuilderList()
public List<RelatedUrl.Builder> getRelatedUrlsBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
List<Builder> |
getRelatedUrlsCount()
public int getRelatedUrlsCount()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
int |
getRelatedUrlsList()
public List<RelatedUrl> getRelatedUrlsList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
List<RelatedUrl> |
getRelatedUrlsOrBuilder(int index)
public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RelatedUrlOrBuilder |
getRelatedUrlsOrBuilderList()
public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Returns | |
---|---|
Type | Description |
List<? extends io.grafeas.v1.RelatedUrlOrBuilder> |
getSeverity()
public Severity getSeverity()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Returns | |
---|---|
Type | Description |
Severity | The severity. |
getSeverityValue()
public int getSeverityValue()
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for severity. |
getShortDescription()
public String getShortDescription()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Returns | |
---|---|
Type | Description |
String | The shortDescription. |
getShortDescriptionBytes()
public ByteString getShortDescriptionBytes()
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for shortDescription. |
getType()
public String getType()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
Returns | |
---|---|
Type | Description |
String | The type. |
getTypeBytes()
public ByteString getTypeBytes()
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for type. |
getVexAssessment()
public VulnerabilityOccurrence.VexAssessment getVexAssessment()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.VexAssessment | The vexAssessment. |
getVexAssessmentBuilder()
public VulnerabilityOccurrence.VexAssessment.Builder getVexAssessmentBuilder()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.VexAssessment.Builder |
getVexAssessmentOrBuilder()
public VulnerabilityOccurrence.VexAssessmentOrBuilder getVexAssessmentOrBuilder()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.VexAssessmentOrBuilder |
hasCvssV2()
public boolean hasCvssV2()
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Returns | |
---|---|
Type | Description |
boolean | Whether the cvssV2 field is set. |
hasCvssv3()
public boolean hasCvssv3()
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the cvssv3 field is set. |
hasVexAssessment()
public boolean hasVexAssessment()
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Returns | |
---|---|
Type | Description |
boolean | Whether the vexAssessment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCvssV2(CVSS value)
public VulnerabilityOccurrence.Builder mergeCvssV2(CVSS value)
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Parameter | |
---|---|
Name | Description |
value | CVSS |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
mergeCvssv3(CVSS value)
public VulnerabilityOccurrence.Builder mergeCvssv3(CVSS value)
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Parameter | |
---|---|
Name | Description |
value | CVSS |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VulnerabilityOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public VulnerabilityOccurrence.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
mergeFrom(VulnerabilityOccurrence other)
public VulnerabilityOccurrence.Builder mergeFrom(VulnerabilityOccurrence other)
Parameter | |
---|---|
Name | Description |
other | VulnerabilityOccurrence |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
mergeVexAssessment(VulnerabilityOccurrence.VexAssessment value)
public VulnerabilityOccurrence.Builder mergeVexAssessment(VulnerabilityOccurrence.VexAssessment value)
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Parameter | |
---|---|
Name | Description |
value | VulnerabilityOccurrence.VexAssessment |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
removePackageIssue(int index)
public VulnerabilityOccurrence.Builder removePackageIssue(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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
removeRelatedUrls(int index)
public VulnerabilityOccurrence.Builder removeRelatedUrls(int index)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setCvssScore(float value)
public VulnerabilityOccurrence.Builder setCvssScore(float value)
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;
Parameter | |
---|---|
Name | Description |
value | float The cvssScore to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setCvssV2(CVSS value)
public VulnerabilityOccurrence.Builder setCvssV2(CVSS value)
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Parameter | |
---|---|
Name | Description |
value | CVSS |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setCvssV2(CVSS.Builder builderForValue)
public VulnerabilityOccurrence.Builder setCvssV2(CVSS.Builder builderForValue)
The cvss v2 score for the vulnerability.
.grafeas.v1.CVSS cvss_v2 = 12;
Parameter | |
---|---|
Name | Description |
builderForValue | CVSS.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setCvssVersion(CVSSVersion value)
public VulnerabilityOccurrence.Builder setCvssVersion(CVSSVersion value)
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
Parameter | |
---|---|
Name | Description |
value | CVSSVersion The cvssVersion to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setCvssVersionValue(int value)
public VulnerabilityOccurrence.Builder setCvssVersionValue(int value)
Output only. CVSS version used to populate cvss_score and severity.
.grafeas.v1.CVSSVersion cvss_version = 11;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for cvssVersion to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setCvssv3(CVSS value)
public VulnerabilityOccurrence.Builder setCvssv3(CVSS value)
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Parameter | |
---|---|
Name | Description |
value | CVSS |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setCvssv3(CVSS.Builder builderForValue)
public VulnerabilityOccurrence.Builder setCvssv3(CVSS.Builder builderForValue)
The cvss v3 score for the vulnerability.
.grafeas.v1.CVSS cvssv3 = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | CVSS.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setEffectiveSeverity(Severity value)
public VulnerabilityOccurrence.Builder setEffectiveSeverity(Severity value)
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;
Parameter | |
---|---|
Name | Description |
value | Severity The effectiveSeverity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setEffectiveSeverityValue(int value)
public VulnerabilityOccurrence.Builder setEffectiveSeverityValue(int value)
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for effectiveSeverity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setFixAvailable(boolean value)
public VulnerabilityOccurrence.Builder setFixAvailable(boolean value)
Output only. Whether at least one of the affected packages has a fix available.
bool fix_available = 9;
Parameter | |
---|---|
Name | Description |
value | boolean The fixAvailable to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setLongDescription(String value)
public VulnerabilityOccurrence.Builder setLongDescription(String value)
Output only. A detailed description of this vulnerability.
string long_description = 6;
Parameter | |
---|---|
Name | Description |
value | String The longDescription to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setLongDescriptionBytes(ByteString value)
public VulnerabilityOccurrence.Builder setLongDescriptionBytes(ByteString value)
Output only. A detailed description of this vulnerability.
string long_description = 6;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for longDescription to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
public VulnerabilityOccurrence.Builder setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue value)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameters | |
---|---|
Name | Description |
index | int |
value | VulnerabilityOccurrence.PackageIssue |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
public VulnerabilityOccurrence.Builder setPackageIssue(int index, VulnerabilityOccurrence.PackageIssue.Builder builderForValue)
Required. The set of affected locations and their fixes (if available) within the associated resource.
repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | VulnerabilityOccurrence.PackageIssue.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setRelatedUrls(int index, RelatedUrl value)
public VulnerabilityOccurrence.Builder setRelatedUrls(int index, RelatedUrl value)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameters | |
---|---|
Name | Description |
index | int |
value | RelatedUrl |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setRelatedUrls(int index, RelatedUrl.Builder builderForValue)
public VulnerabilityOccurrence.Builder setRelatedUrls(int index, RelatedUrl.Builder builderForValue)
Output only. URLs related to this vulnerability.
repeated .grafeas.v1.RelatedUrl related_urls = 7;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | RelatedUrl.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VulnerabilityOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setSeverity(Severity value)
public VulnerabilityOccurrence.Builder setSeverity(Severity value)
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Parameter | |
---|---|
Name | Description |
value | Severity The severity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setSeverityValue(int value)
public VulnerabilityOccurrence.Builder setSeverityValue(int value)
Output only. The note provider assigned severity of this vulnerability.
.grafeas.v1.Severity severity = 2;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for severity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setShortDescription(String value)
public VulnerabilityOccurrence.Builder setShortDescription(String value)
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Parameter | |
---|---|
Name | Description |
value | String The shortDescription to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setShortDescriptionBytes(ByteString value)
public VulnerabilityOccurrence.Builder setShortDescriptionBytes(ByteString value)
Output only. A one sentence description of this vulnerability.
string short_description = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for shortDescription to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setType(String value)
public VulnerabilityOccurrence.Builder setType(String value)
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
Parameter | |
---|---|
Name | Description |
value | String The type to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setTypeBytes(ByteString value)
public VulnerabilityOccurrence.Builder setTypeBytes(ByteString value)
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string type = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for type to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setVexAssessment(VulnerabilityOccurrence.VexAssessment value)
public VulnerabilityOccurrence.Builder setVexAssessment(VulnerabilityOccurrence.VexAssessment value)
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Parameter | |
---|---|
Name | Description |
value | VulnerabilityOccurrence.VexAssessment |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |
setVexAssessment(VulnerabilityOccurrence.VexAssessment.Builder builderForValue)
public VulnerabilityOccurrence.Builder setVexAssessment(VulnerabilityOccurrence.VexAssessment.Builder builderForValue)
.grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13;
Parameter | |
---|---|
Name | Description |
builderForValue | VulnerabilityOccurrence.VexAssessment.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.Builder |