public static final class Vulnerability.Builder extends GeneratedMessage.Builder<Vulnerability.Builder> implements VulnerabilityOrBuilderA vulnerability.
Protobuf type google.backstory.Vulnerability
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Vulnerability.BuilderImplements
VulnerabilityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Vulnerability build()| Returns | |
|---|---|
| Type | Description |
Vulnerability |
|
buildPartial()
public Vulnerability buildPartial()| Returns | |
|---|---|
| Type | Description |
Vulnerability |
|
clear()
public Vulnerability.Builder clear()| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearAbout()
public Vulnerability.Builder clearAbout()If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearCveDescription()
public Vulnerability.Builder clearCveDescription()Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record
string cve_description = 15;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearCveId()
public Vulnerability.Builder clearCveId()Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
string cve_id = 14;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearCvssBaseScore()
public Vulnerability.Builder clearCvssBaseScore()CVSS Base Score in the range of 0.0 to 10.0. Useful for sorting.
float cvss_base_score = 10;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearCvssVector()
public Vulnerability.Builder clearCvssVector()Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
string cvss_vector = 11;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearCvssVersion()
public Vulnerability.Builder clearCvssVersion()Version of CVSS Vector/Score.
string cvss_version = 12;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearDescription()
public Vulnerability.Builder clearDescription()Description of the vulnerability.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearFirstFound()
public Vulnerability.Builder clearFirstFound()Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearLastFound()
public Vulnerability.Builder clearLastFound()Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearName()
public Vulnerability.Builder clearName()Name of the vulnerability (e.g. "Unsupported OS Version detected").
string name = 2;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearScanEndTime()
public Vulnerability.Builder clearScanEndTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearScanStartTime()
public Vulnerability.Builder clearScanStartTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
clearSeverity()
public Vulnerability.Builder clearSeverity()The severity of the vulnerability.
.google.backstory.Vulnerability.Severity severity = 8;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearSeverityDetails()
public Vulnerability.Builder clearSeverityDetails()Vendor-specific severity
string severity_details = 9;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearVendor()
public Vulnerability.Builder clearVendor()Vendor of scan that discovered vulnerability.
string vendor = 13;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearVendorKnowledgeBaseArticleId()
public Vulnerability.Builder clearVendorKnowledgeBaseArticleId()Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
string vendor_knowledge_base_article_id = 17;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
clearVendorVulnerabilityId()
public Vulnerability.Builder clearVendorVulnerabilityId()Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
string vendor_vulnerability_id = 16;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
getAbout()
public Noun getAbout()If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Returns | |
|---|---|
| Type | Description |
Noun |
The about. |
getAboutBuilder()
public Noun.Builder getAboutBuilder()If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Returns | |
|---|---|
| Type | Description |
Noun.Builder |
|
getAboutOrBuilder()
public NounOrBuilder getAboutOrBuilder()If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Returns | |
|---|---|
| Type | Description |
NounOrBuilder |
|
getCveDescription()
public String getCveDescription()Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record
string cve_description = 15;
| Returns | |
|---|---|
| Type | Description |
String |
The cveDescription. |
getCveDescriptionBytes()
public ByteString getCveDescriptionBytes()Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record
string cve_description = 15;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cveDescription. |
getCveId()
public String getCveId()Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
string cve_id = 14;
| Returns | |
|---|---|
| Type | Description |
String |
The cveId. |
getCveIdBytes()
public ByteString getCveIdBytes()Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
string cve_id = 14;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cveId. |
getCvssBaseScore()
public float getCvssBaseScore()CVSS Base Score in the range of 0.0 to 10.0. Useful for sorting.
float cvss_base_score = 10;
| Returns | |
|---|---|
| Type | Description |
float |
The cvssBaseScore. |
getCvssVector()
public String getCvssVector()Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
string cvss_vector = 11;
| Returns | |
|---|---|
| Type | Description |
String |
The cvssVector. |
getCvssVectorBytes()
public ByteString getCvssVectorBytes()Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
string cvss_vector = 11;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cvssVector. |
getCvssVersion()
public String getCvssVersion()Version of CVSS Vector/Score.
string cvss_version = 12;
| Returns | |
|---|---|
| Type | Description |
String |
The cvssVersion. |
getCvssVersionBytes()
public ByteString getCvssVersionBytes()Version of CVSS Vector/Score.
string cvss_version = 12;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cvssVersion. |
getDefaultInstanceForType()
public Vulnerability getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Vulnerability |
|
getDescription()
public String getDescription()Description of the vulnerability.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Description of the vulnerability.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFirstFound()
public Timestamp getFirstFound()Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The firstFound. |
getFirstFoundBuilder()
public Timestamp.Builder getFirstFoundBuilder()Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getFirstFoundOrBuilder()
public TimestampOrBuilder getFirstFoundOrBuilder()Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getLastFound()
public Timestamp getLastFound()Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastFound. |
getLastFoundBuilder()
public Timestamp.Builder getLastFoundBuilder()Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLastFoundOrBuilder()
public TimestampOrBuilder getLastFoundOrBuilder()Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getName()
public String getName()Name of the vulnerability (e.g. "Unsupported OS Version detected").
string name = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of the vulnerability (e.g. "Unsupported OS Version detected").
string name = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getScanEndTime()
public Timestamp getScanEndTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The scanEndTime. |
getScanEndTimeBuilder()
public Timestamp.Builder getScanEndTimeBuilder()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getScanEndTimeOrBuilder()
public TimestampOrBuilder getScanEndTimeOrBuilder()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getScanStartTime()
public Timestamp getScanStartTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The scanStartTime. |
getScanStartTimeBuilder()
public Timestamp.Builder getScanStartTimeBuilder()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getScanStartTimeOrBuilder()
public TimestampOrBuilder getScanStartTimeOrBuilder()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getSeverity()
public Vulnerability.Severity getSeverity()The severity of the vulnerability.
.google.backstory.Vulnerability.Severity severity = 8;
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Severity |
The severity. |
getSeverityDetails()
public String getSeverityDetails()Vendor-specific severity
string severity_details = 9;
| Returns | |
|---|---|
| Type | Description |
String |
The severityDetails. |
getSeverityDetailsBytes()
public ByteString getSeverityDetailsBytes()Vendor-specific severity
string severity_details = 9;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for severityDetails. |
getSeverityValue()
public int getSeverityValue()The severity of the vulnerability.
.google.backstory.Vulnerability.Severity severity = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for severity. |
getVendor()
public String getVendor()Vendor of scan that discovered vulnerability.
string vendor = 13;
| Returns | |
|---|---|
| Type | Description |
String |
The vendor. |
getVendorBytes()
public ByteString getVendorBytes()Vendor of scan that discovered vulnerability.
string vendor = 13;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vendor. |
getVendorKnowledgeBaseArticleId()
public String getVendorKnowledgeBaseArticleId()Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
string vendor_knowledge_base_article_id = 17;
| Returns | |
|---|---|
| Type | Description |
String |
The vendorKnowledgeBaseArticleId. |
getVendorKnowledgeBaseArticleIdBytes()
public ByteString getVendorKnowledgeBaseArticleIdBytes()Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
string vendor_knowledge_base_article_id = 17;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vendorKnowledgeBaseArticleId. |
getVendorVulnerabilityId()
public String getVendorVulnerabilityId()Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
string vendor_vulnerability_id = 16;
| Returns | |
|---|---|
| Type | Description |
String |
The vendorVulnerabilityId. |
getVendorVulnerabilityIdBytes()
public ByteString getVendorVulnerabilityIdBytes()Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
string vendor_vulnerability_id = 16;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vendorVulnerabilityId. |
hasAbout()
public boolean hasAbout()If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the about field is set. |
hasFirstFound()
public boolean hasFirstFound()Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the firstFound field is set. |
hasLastFound()
public boolean hasLastFound()Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastFound field is set. |
hasScanEndTime()
public boolean hasScanEndTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scanEndTime field is set. |
hasScanStartTime()
public boolean hasScanStartTime()If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scanStartTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAbout(Noun value)
public Vulnerability.Builder mergeAbout(Noun value)If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Noun |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeFirstFound(Timestamp value)
public Vulnerability.Builder mergeFirstFound(Timestamp value)Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeFrom(Vulnerability other)
public Vulnerability.Builder mergeFrom(Vulnerability other)| Parameter | |
|---|---|
| Name | Description |
other |
Vulnerability |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Vulnerability.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Vulnerability.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeLastFound(Timestamp value)
public Vulnerability.Builder mergeLastFound(Timestamp value)Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeScanEndTime(Timestamp value)
public Vulnerability.Builder mergeScanEndTime(Timestamp value)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
mergeScanStartTime(Timestamp value)
public Vulnerability.Builder mergeScanStartTime(Timestamp value)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setAbout(Noun value)
public Vulnerability.Builder setAbout(Noun value)If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Noun |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setAbout(Noun.Builder builderForValue)
public Vulnerability.Builder setAbout(Noun.Builder builderForValue)If the vulnerability is about a specific noun (e.g. executable), then add it here.
.google.backstory.Noun about = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Noun.Builder |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setCveDescription(String value)
public Vulnerability.Builder setCveDescription(String value)Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record
string cve_description = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cveDescription to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCveDescriptionBytes(ByteString value)
public Vulnerability.Builder setCveDescriptionBytes(ByteString value)Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record
string cve_description = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cveDescription to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCveId(String value)
public Vulnerability.Builder setCveId(String value)Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
string cve_id = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cveId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCveIdBytes(ByteString value)
public Vulnerability.Builder setCveIdBytes(ByteString value)Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
string cve_id = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cveId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCvssBaseScore(float value)
public Vulnerability.Builder setCvssBaseScore(float value)CVSS Base Score in the range of 0.0 to 10.0. Useful for sorting.
float cvss_base_score = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe cvssBaseScore to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCvssVector(String value)
public Vulnerability.Builder setCvssVector(String value)Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
string cvss_vector = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cvssVector to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCvssVectorBytes(ByteString value)
public Vulnerability.Builder setCvssVectorBytes(ByteString value)Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
string cvss_vector = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cvssVector to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCvssVersion(String value)
public Vulnerability.Builder setCvssVersion(String value)Version of CVSS Vector/Score.
string cvss_version = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cvssVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setCvssVersionBytes(ByteString value)
public Vulnerability.Builder setCvssVersionBytes(ByteString value)Version of CVSS Vector/Score.
string cvss_version = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cvssVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setDescription(String value)
public Vulnerability.Builder setDescription(String value)Description of the vulnerability.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Vulnerability.Builder setDescriptionBytes(ByteString value)Description of the vulnerability.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setFirstFound(Timestamp value)
public Vulnerability.Builder setFirstFound(Timestamp value)Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setFirstFound(Timestamp.Builder builderForValue)
public Vulnerability.Builder setFirstFound(Timestamp.Builder builderForValue)Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
.google.protobuf.Timestamp first_found = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setLastFound(Timestamp value)
public Vulnerability.Builder setLastFound(Timestamp value)Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setLastFound(Timestamp.Builder builderForValue)
public Vulnerability.Builder setLastFound(Timestamp.Builder builderForValue)Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
.google.protobuf.Timestamp last_found = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setName(String value)
public Vulnerability.Builder setName(String value)Name of the vulnerability (e.g. "Unsupported OS Version detected").
string name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Vulnerability.Builder setNameBytes(ByteString value)Name of the vulnerability (e.g. "Unsupported OS Version detected").
string name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setScanEndTime(Timestamp value)
public Vulnerability.Builder setScanEndTime(Timestamp value)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setScanEndTime(Timestamp.Builder builderForValue)
public Vulnerability.Builder setScanEndTime(Timestamp.Builder builderForValue)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable.
.google.protobuf.Timestamp scan_end_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setScanStartTime(Timestamp value)
public Vulnerability.Builder setScanStartTime(Timestamp value)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setScanStartTime(Timestamp.Builder builderForValue)
public Vulnerability.Builder setScanStartTime(Timestamp.Builder builderForValue)If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable.
.google.protobuf.Timestamp scan_start_time = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
|
setSeverity(Vulnerability.Severity value)
public Vulnerability.Builder setSeverity(Vulnerability.Severity value)The severity of the vulnerability.
.google.backstory.Vulnerability.Severity severity = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Vulnerability.SeverityThe severity to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setSeverityDetails(String value)
public Vulnerability.Builder setSeverityDetails(String value)Vendor-specific severity
string severity_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe severityDetails to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setSeverityDetailsBytes(ByteString value)
public Vulnerability.Builder setSeverityDetailsBytes(ByteString value)Vendor-specific severity
string severity_details = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for severityDetails to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setSeverityValue(int value)
public Vulnerability.Builder setSeverityValue(int value)The severity of the vulnerability.
.google.backstory.Vulnerability.Severity severity = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for severity to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendor(String value)
public Vulnerability.Builder setVendor(String value)Vendor of scan that discovered vulnerability.
string vendor = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vendor to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendorBytes(ByteString value)
public Vulnerability.Builder setVendorBytes(ByteString value)Vendor of scan that discovered vulnerability.
string vendor = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vendor to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendorKnowledgeBaseArticleId(String value)
public Vulnerability.Builder setVendorKnowledgeBaseArticleId(String value)Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
string vendor_knowledge_base_article_id = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vendorKnowledgeBaseArticleId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendorKnowledgeBaseArticleIdBytes(ByteString value)
public Vulnerability.Builder setVendorKnowledgeBaseArticleIdBytes(ByteString value)Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
string vendor_knowledge_base_article_id = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vendorKnowledgeBaseArticleId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendorVulnerabilityId(String value)
public Vulnerability.Builder setVendorVulnerabilityId(String value)Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
string vendor_vulnerability_id = 16;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vendorVulnerabilityId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |
setVendorVulnerabilityIdBytes(ByteString value)
public Vulnerability.Builder setVendorVulnerabilityIdBytes(ByteString value)Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
string vendor_vulnerability_id = 16;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vendorVulnerabilityId to set. |
| Returns | |
|---|---|
| Type | Description |
Vulnerability.Builder |
This builder for chaining. |