Class VulnerabilityOccurrence.VexAssessment.Builder (2.52.0)

public static final class VulnerabilityOccurrence.VexAssessment.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrence.VexAssessment.Builder> implements VulnerabilityOccurrence.VexAssessmentOrBuilder

VexAssessment provides all publisher provided Vex information that is related to this vulnerability.

Protobuf type grafeas.v1.VulnerabilityOccurrence.VexAssessment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllImpacts(Iterable<String> values)

public VulnerabilityOccurrence.VexAssessment.Builder addAllImpacts(Iterable<String> values)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameter
Name Description
values Iterable<String>

The impacts to add.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

addAllRelatedUris(Iterable<? extends RelatedUrl> values)

public VulnerabilityOccurrence.VexAssessment.Builder addAllRelatedUris(Iterable<? extends RelatedUrl> values)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.RelatedUrl>
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addAllRemediations(Iterable<? extends VulnerabilityAssessmentNote.Assessment.Remediation> values)

public VulnerabilityOccurrence.VexAssessment.Builder addAllRemediations(Iterable<? extends VulnerabilityAssessmentNote.Assessment.Remediation> values)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addImpacts(String value)

public VulnerabilityOccurrence.VexAssessment.Builder addImpacts(String value)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameter
Name Description
value String

The impacts to add.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

addImpactsBytes(ByteString value)

public VulnerabilityOccurrence.VexAssessment.Builder addImpactsBytes(ByteString value)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameter
Name Description
value ByteString

The bytes of the impacts to add.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

addRelatedUris(int index, RelatedUrl value)

public VulnerabilityOccurrence.VexAssessment.Builder addRelatedUris(int index, RelatedUrl value)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameters
Name Description
index int
value RelatedUrl
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRelatedUris(int index, RelatedUrl.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder addRelatedUris(int index, RelatedUrl.Builder builderForValue)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameters
Name Description
index int
builderForValue RelatedUrl.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRelatedUris(RelatedUrl value)

public VulnerabilityOccurrence.VexAssessment.Builder addRelatedUris(RelatedUrl value)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
value RelatedUrl
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRelatedUris(RelatedUrl.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder addRelatedUris(RelatedUrl.Builder builderForValue)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
builderForValue RelatedUrl.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRelatedUrisBuilder()

public RelatedUrl.Builder addRelatedUrisBuilder()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
RelatedUrl.Builder

addRelatedUrisBuilder(int index)

public RelatedUrl.Builder addRelatedUrisBuilder(int index)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrl.Builder

addRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation value)

public VulnerabilityOccurrence.VexAssessment.Builder addRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation value)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameters
Name Description
index int
value VulnerabilityAssessmentNote.Assessment.Remediation
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder addRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameters
Name Description
index int
builderForValue VulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRemediations(VulnerabilityAssessmentNote.Assessment.Remediation value)

public VulnerabilityOccurrence.VexAssessment.Builder addRemediations(VulnerabilityAssessmentNote.Assessment.Remediation value)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
value VulnerabilityAssessmentNote.Assessment.Remediation
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRemediations(VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder addRemediations(VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
builderForValue VulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

addRemediationsBuilder()

public VulnerabilityAssessmentNote.Assessment.Remediation.Builder addRemediationsBuilder()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Remediation.Builder

addRemediationsBuilder(int index)

public VulnerabilityAssessmentNote.Assessment.Remediation.Builder addRemediationsBuilder(int index)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Remediation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.VexAssessment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

build()

public VulnerabilityOccurrence.VexAssessment build()
Returns
Type Description
VulnerabilityOccurrence.VexAssessment

buildPartial()

public VulnerabilityOccurrence.VexAssessment buildPartial()
Returns
Type Description
VulnerabilityOccurrence.VexAssessment

clear()

public VulnerabilityOccurrence.VexAssessment.Builder clear()
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

clearCve() (deprecated)

public VulnerabilityOccurrence.VexAssessment.Builder clearCve()

Deprecated. grafeas.v1.VulnerabilityOccurrence.VexAssessment.cve is deprecated. See grafeas/v1/vulnerability.proto;l=262

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.

string cve = 1 [deprecated = true];

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityOccurrence.VexAssessment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

clearImpacts()

public VulnerabilityOccurrence.VexAssessment.Builder clearImpacts()

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearJustification()

public VulnerabilityOccurrence.VexAssessment.Builder clearJustification()

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

clearNoteName()

public VulnerabilityOccurrence.VexAssessment.Builder clearNoteName()

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. (-- api-linter: core::0122::name-suffix=disabled aip.dev/not-precedent: The suffix is kept for consistency. --)

string note_name = 3;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityOccurrence.VexAssessment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

clearRelatedUris()

public VulnerabilityOccurrence.VexAssessment.Builder clearRelatedUris()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

clearRemediations()

public VulnerabilityOccurrence.VexAssessment.Builder clearRemediations()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

clearState()

public VulnerabilityOccurrence.VexAssessment.Builder clearState()

Provides the state of this Vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearVulnerabilityId()

public VulnerabilityOccurrence.VexAssessment.Builder clearVulnerabilityId()

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.

string vulnerability_id = 8;

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clone()

public VulnerabilityOccurrence.VexAssessment.Builder clone()
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

getCve() (deprecated)

public String getCve()

Deprecated. grafeas.v1.VulnerabilityOccurrence.VexAssessment.cve is deprecated. See grafeas/v1/vulnerability.proto;l=262

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.

string cve = 1 [deprecated = true];

Returns
Type Description
String

The cve.

getCveBytes() (deprecated)

public ByteString getCveBytes()

Deprecated. grafeas.v1.VulnerabilityOccurrence.VexAssessment.cve is deprecated. See grafeas/v1/vulnerability.proto;l=262

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.

string cve = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for cve.

getDefaultInstanceForType()

public VulnerabilityOccurrence.VexAssessment getDefaultInstanceForType()
Returns
Type Description
VulnerabilityOccurrence.VexAssessment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImpacts(int index)

public String getImpacts(int index)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The impacts at the given index.

getImpactsBytes(int index)

public ByteString getImpactsBytes(int index)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the impacts at the given index.

getImpactsCount()

public int getImpactsCount()

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Returns
Type Description
int

The count of impacts.

getImpactsList()

public ProtocolStringList getImpactsList()

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Returns
Type Description
ProtocolStringList

A list containing the impacts.

getJustification()

public VulnerabilityAssessmentNote.Assessment.Justification getJustification()

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Justification

The justification.

getJustificationBuilder()

public VulnerabilityAssessmentNote.Assessment.Justification.Builder getJustificationBuilder()

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Justification.Builder

getJustificationOrBuilder()

public VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder getJustificationOrBuilder()

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Returns
Type Description
VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder

getNoteName()

public String getNoteName()

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. (-- api-linter: core::0122::name-suffix=disabled aip.dev/not-precedent: The suffix is kept for consistency. --)

string note_name = 3;

Returns
Type Description
String

The noteName.

getNoteNameBytes()

public ByteString getNoteNameBytes()

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. (-- api-linter: core::0122::name-suffix=disabled aip.dev/not-precedent: The suffix is kept for consistency. --)

string note_name = 3;

Returns
Type Description
ByteString

The bytes for noteName.

getRelatedUris(int index)

public RelatedUrl getRelatedUris(int index)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrl

getRelatedUrisBuilder(int index)

public RelatedUrl.Builder getRelatedUrisBuilder(int index)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrl.Builder

getRelatedUrisBuilderList()

public List<RelatedUrl.Builder> getRelatedUrisBuilderList()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
List<Builder>

getRelatedUrisCount()

public int getRelatedUrisCount()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
int

getRelatedUrisList()

public List<RelatedUrl> getRelatedUrisList()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
List<RelatedUrl>

getRelatedUrisOrBuilder(int index)

public RelatedUrlOrBuilder getRelatedUrisOrBuilder(int index)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrlOrBuilder

getRelatedUrisOrBuilderList()

public List<? extends RelatedUrlOrBuilder> getRelatedUrisOrBuilderList()

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Returns
Type Description
List<? extends io.grafeas.v1.RelatedUrlOrBuilder>

getRemediations(int index)

public VulnerabilityAssessmentNote.Assessment.Remediation getRemediations(int index)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Remediation

getRemediationsBuilder(int index)

public VulnerabilityAssessmentNote.Assessment.Remediation.Builder getRemediationsBuilder(int index)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityAssessmentNote.Assessment.Remediation.Builder

getRemediationsBuilderList()

public List<VulnerabilityAssessmentNote.Assessment.Remediation.Builder> getRemediationsBuilderList()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
List<Builder>

getRemediationsCount()

public int getRemediationsCount()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
int

getRemediationsList()

public List<VulnerabilityAssessmentNote.Assessment.Remediation> getRemediationsList()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
List<Remediation>

getRemediationsOrBuilder(int index)

public VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder getRemediationsOrBuilder(int index)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder

getRemediationsOrBuilderList()

public List<? extends VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder> getRemediationsOrBuilderList()

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Returns
Type Description
List<? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>

getState()

public VulnerabilityAssessmentNote.Assessment.State getState()

Provides the state of this Vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;

Returns
Type Description
VulnerabilityAssessmentNote.Assessment.State

The state.

getStateValue()

public int getStateValue()

Provides the state of this Vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

getVulnerabilityId()

public String getVulnerabilityId()

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.

string vulnerability_id = 8;

Returns
Type Description
String

The vulnerabilityId.

getVulnerabilityIdBytes()

public ByteString getVulnerabilityIdBytes()

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.

string vulnerability_id = 8;

Returns
Type Description
ByteString

The bytes for vulnerabilityId.

hasJustification()

public boolean hasJustification()

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Returns
Type Description
boolean

Whether the justification field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

mergeFrom(VulnerabilityOccurrence.VexAssessment other)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(VulnerabilityOccurrence.VexAssessment other)
Parameter
Name Description
other VulnerabilityOccurrence.VexAssessment
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

mergeJustification(VulnerabilityAssessmentNote.Assessment.Justification value)

public VulnerabilityOccurrence.VexAssessment.Builder mergeJustification(VulnerabilityAssessmentNote.Assessment.Justification value)

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Parameter
Name Description
value VulnerabilityAssessmentNote.Assessment.Justification
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.VexAssessment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

removeRelatedUris(int index)

public VulnerabilityOccurrence.VexAssessment.Builder removeRelatedUris(int index)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

removeRemediations(int index)

public VulnerabilityOccurrence.VexAssessment.Builder removeRemediations(int index)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setCve(String value) (deprecated)

public VulnerabilityOccurrence.VexAssessment.Builder setCve(String value)

Deprecated. grafeas.v1.VulnerabilityOccurrence.VexAssessment.cve is deprecated. See grafeas/v1/vulnerability.proto;l=262

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.

string cve = 1 [deprecated = true];

Parameter
Name Description
value String

The cve to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setCveBytes(ByteString value) (deprecated)

public VulnerabilityOccurrence.VexAssessment.Builder setCveBytes(ByteString value)

Deprecated. grafeas.v1.VulnerabilityOccurrence.VexAssessment.cve is deprecated. See grafeas/v1/vulnerability.proto;l=262

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.

string cve = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for cve to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.VexAssessment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

setImpacts(int index, String value)

public VulnerabilityOccurrence.VexAssessment.Builder setImpacts(int index, String value)

Contains information about the impact of this vulnerability, this will change with time.

repeated string impacts = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The impacts to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setJustification(VulnerabilityAssessmentNote.Assessment.Justification value)

public VulnerabilityOccurrence.VexAssessment.Builder setJustification(VulnerabilityAssessmentNote.Assessment.Justification value)

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Parameter
Name Description
value VulnerabilityAssessmentNote.Assessment.Justification
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setJustification(VulnerabilityAssessmentNote.Assessment.Justification.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder setJustification(VulnerabilityAssessmentNote.Assessment.Justification.Builder builderForValue)

Justification provides the justification when the state of the assessment if NOT_AFFECTED.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;

Parameter
Name Description
builderForValue VulnerabilityAssessmentNote.Assessment.Justification.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setNoteName(String value)

public VulnerabilityOccurrence.VexAssessment.Builder setNoteName(String value)

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. (-- api-linter: core::0122::name-suffix=disabled aip.dev/not-precedent: The suffix is kept for consistency. --)

string note_name = 3;

Parameter
Name Description
value String

The noteName to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setNoteNameBytes(ByteString value)

public VulnerabilityOccurrence.VexAssessment.Builder setNoteNameBytes(ByteString value)

The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: projects/[PROJECT_ID]/notes/[NOTE_ID]. (-- api-linter: core::0122::name-suffix=disabled aip.dev/not-precedent: The suffix is kept for consistency. --)

string note_name = 3;

Parameter
Name Description
value ByteString

The bytes for noteName to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setRelatedUris(int index, RelatedUrl value)

public VulnerabilityOccurrence.VexAssessment.Builder setRelatedUris(int index, RelatedUrl value)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameters
Name Description
index int
value RelatedUrl
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setRelatedUris(int index, RelatedUrl.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder setRelatedUris(int index, RelatedUrl.Builder builderForValue)

Holds a list of references associated with this vulnerability item and assessment.

repeated .grafeas.v1.RelatedUrl related_uris = 2;

Parameters
Name Description
index int
builderForValue RelatedUrl.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation value)

public VulnerabilityOccurrence.VexAssessment.Builder setRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation value)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameters
Name Description
index int
value VulnerabilityAssessmentNote.Assessment.Remediation
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

public VulnerabilityOccurrence.VexAssessment.Builder setRemediations(int index, VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)

Specifies details on how to handle (and presumably, fix) a vulnerability.

repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6;

Parameters
Name Description
index int
builderForValue VulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VulnerabilityOccurrence.VexAssessment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

setState(VulnerabilityAssessmentNote.Assessment.State value)

public VulnerabilityOccurrence.VexAssessment.Builder setState(VulnerabilityAssessmentNote.Assessment.State value)

Provides the state of this Vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;

Parameter
Name Description
value VulnerabilityAssessmentNote.Assessment.State

The state to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setStateValue(int value)

public VulnerabilityOccurrence.VexAssessment.Builder setStateValue(int value)

Provides the state of this Vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.VexAssessment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

setVulnerabilityId(String value)

public VulnerabilityOccurrence.VexAssessment.Builder setVulnerabilityId(String value)

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.

string vulnerability_id = 8;

Parameter
Name Description
value String

The vulnerabilityId to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setVulnerabilityIdBytes(ByteString value)

public VulnerabilityOccurrence.VexAssessment.Builder setVulnerabilityIdBytes(ByteString value)

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.

string vulnerability_id = 8;

Parameter
Name Description
value ByteString

The bytes for vulnerabilityId to set.

Returns
Type Description
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.