Class VulnerabilityOccurrence.VexAssessment.Builder (2.28.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
TypeDescription
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
NameDescription
valuesIterable<String>

The impacts to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1.RelatedUrl>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
Returns
TypeDescription
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
NameDescription
valueString

The impacts to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the impacts to add.

Returns
TypeDescription
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
NameDescription
indexint
valueRelatedUrl
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedUrl.Builder
Returns
TypeDescription
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
NameDescription
valueRelatedUrl
Returns
TypeDescription
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
NameDescription
builderForValueRelatedUrl.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityAssessmentNote.Assessment.Remediation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
TypeDescription
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
NameDescription
valueVulnerabilityAssessmentNote.Assessment.Remediation
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VulnerabilityAssessmentNote.Assessment.Remediation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.VexAssessment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

build()

public VulnerabilityOccurrence.VexAssessment build()
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment

buildPartial()

public VulnerabilityOccurrence.VexAssessment buildPartial()
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment

clear()

public VulnerabilityOccurrence.VexAssessment.Builder clear()
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

clearCve()

public VulnerabilityOccurrence.VexAssessment.Builder clearCve()

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.

string cve = 1;

Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityOccurrence.VexAssessment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityOccurrence.VexAssessment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

clearState()

public VulnerabilityOccurrence.VexAssessment.Builder clearState()

Provides the state of this Vulnerability assessment.

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

Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

clone()

public VulnerabilityOccurrence.VexAssessment.Builder clone()
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

getCve()

public String getCve()

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.

string cve = 1;

Returns
TypeDescription
String

The cve.

getCveBytes()

public ByteString getCveBytes()

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.

string cve = 1;

Returns
TypeDescription
ByteString

The bytes for cve.

getDefaultInstanceForType()

public VulnerabilityOccurrence.VexAssessment getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VulnerabilityAssessmentNote.Assessment.State

The state.

getStateValue()

public int getStateValue()

Provides the state of this Vulnerability assessment.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

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
TypeDescription
boolean

Whether the justification field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides

mergeFrom(VulnerabilityOccurrence.VexAssessment other)

public VulnerabilityOccurrence.VexAssessment.Builder mergeFrom(VulnerabilityOccurrence.VexAssessment other)
Parameter
NameDescription
otherVulnerabilityOccurrence.VexAssessment
Returns
TypeDescription
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
NameDescription
valueVulnerabilityAssessmentNote.Assessment.Justification
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.VexAssessment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

setCve(String value)

public VulnerabilityOccurrence.VexAssessment.Builder setCve(String value)

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.

string cve = 1;

Parameter
NameDescription
valueString

The cve to set.

Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setCveBytes(ByteString value)

public VulnerabilityOccurrence.VexAssessment.Builder setCveBytes(ByteString value)

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability.

string cve = 1;

Parameter
NameDescription
valueByteString

The bytes for cve to set.

Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.VexAssessment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The impacts to set.

Returns
TypeDescription
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
NameDescription
valueVulnerabilityAssessmentNote.Assessment.Justification
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityAssessmentNote.Assessment.Justification.Builder
Returns
TypeDescription
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
NameDescription
valueString

The noteName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for noteName to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRelatedUrl
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedUrl.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityAssessmentNote.Assessment.Remediation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityAssessmentNote.Assessment.Remediation.Builder
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

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

public VulnerabilityOccurrence.VexAssessment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueVulnerabilityAssessmentNote.Assessment.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.VexAssessment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityOccurrence.VexAssessment.Builder
Overrides