Reference documentation and code samples for the Grafeas V1 Client class Assessment.
Assessment provides all information that is related to a single
vulnerability for this product.
Generated from protobuf messagegrafeas.v1.VulnerabilityAssessmentNote.Assessment
Namespace
Grafeas \ V1 \ VulnerabilityAssessmentNote
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ cve
string
Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.
↳ vulnerability_id
string
The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.
Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g. Link to a document which details how this assessment concluded the state of this vulnerability.
↳ state
int
Provides the state of this Vulnerability assessment.
↳ impacts
array
Contains information about the impact of this vulnerability, this will change with time.
Specifies details on how to handle (and presumably, fix) a vulnerability.
getCve
Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
tracking number for the vulnerability.
Deprecated: Use vulnerability_id instead to denote CVEs.
Returns
Type
Description
string
setCve
Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
tracking number for the vulnerability.
Deprecated: Use vulnerability_id instead to denote CVEs.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVulnerabilityId
The vulnerability identifier for this Assessment. Will hold one of
common identifiers e.g. CVE, GHSA etc.
Returns
Type
Description
string
setVulnerabilityId
The vulnerability identifier for this Assessment. Will hold one of
common identifiers e.g. CVE, GHSA etc.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getShortDescription
A one sentence description of this Vex.
Returns
Type
Description
string
setShortDescription
A one sentence description of this Vex.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLongDescription
A detailed description of this Vex.
Returns
Type
Description
string
setLongDescription
A detailed description of this Vex.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRelatedUris
Holds a list of references associated with this vulnerability item and
assessment. These uris have additional information about the
vulnerability and the assessment itself. E.g. Link to a document which
details how this assessment concluded the state of this vulnerability.
Holds a list of references associated with this vulnerability item and
assessment. These uris have additional information about the
vulnerability and the assessment itself. E.g. Link to a document which
details how this assessment concluded the state of this vulnerability.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Grafeas V1 Client - Class Assessment (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.VulnerabilityAssessmentNote.Assessment)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.VulnerabilityAssessmentNote.Assessment)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.VulnerabilityAssessmentNote.Assessment)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.VulnerabilityAssessmentNote.Assessment)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.VulnerabilityAssessmentNote.Assessment) \nReference documentation and code samples for the Grafeas V1 Client class Assessment.\n\nAssessment provides all information that is related to a single\nvulnerability for this product.\n\nGenerated from protobuf message `grafeas.v1.VulnerabilityAssessmentNote.Assessment`\n\nNamespace\n---------\n\nGrafeas \\\\ V1 \\\\ VulnerabilityAssessmentNote\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCve\n\nHolds the MITRE standard Common Vulnerabilities and Exposures (CVE)\ntracking number for the vulnerability.\n\nDeprecated: Use vulnerability_id instead to denote CVEs.\n\n### setCve\n\nHolds the MITRE standard Common Vulnerabilities and Exposures (CVE)\ntracking number for the vulnerability.\n\nDeprecated: Use vulnerability_id instead to denote CVEs.\n\n### getVulnerabilityId\n\nThe vulnerability identifier for this Assessment. Will hold one of\ncommon identifiers e.g. CVE, GHSA etc.\n\n### setVulnerabilityId\n\nThe vulnerability identifier for this Assessment. Will hold one of\ncommon identifiers e.g. CVE, GHSA etc.\n\n### getShortDescription\n\nA one sentence description of this Vex.\n\n### setShortDescription\n\nA one sentence description of this Vex.\n\n### getLongDescription\n\nA detailed description of this Vex.\n\n### setLongDescription\n\nA detailed description of this Vex.\n\n### getRelatedUris\n\nHolds a list of references associated with this vulnerability item and\nassessment. These uris have additional information about the\nvulnerability and the assessment itself. E.g. Link to a document which\ndetails how this assessment concluded the state of this vulnerability.\n\n### setRelatedUris\n\nHolds a list of references associated with this vulnerability item and\nassessment. These uris have additional information about the\nvulnerability and the assessment itself. E.g. Link to a document which\ndetails how this assessment concluded the state of this vulnerability.\n\n### getState\n\nProvides the state of this Vulnerability assessment.\n\n### setState\n\nProvides the state of this Vulnerability assessment.\n\n### getImpacts\n\nContains information about the impact of this vulnerability,\nthis will change with time.\n\n### setImpacts\n\nContains information about the impact of this vulnerability,\nthis will change with time.\n\n### getJustification\n\nJustification provides the justification when the state of the\nassessment if NOT_AFFECTED.\n\n### hasJustification\n\n### clearJustification\n\n### setJustification\n\nJustification provides the justification when the state of the\nassessment if NOT_AFFECTED.\n\n### getRemediations\n\nSpecifies details on how to handle (and presumably, fix) a vulnerability.\n\n### setRemediations\n\nSpecifies details on how to handle (and presumably, fix) a vulnerability."]]