Class Cve.Builder (2.60.0)

public static final class Cve.Builder extends GeneratedMessageV3.Builder<Cve.Builder> implements CveOrBuilder

CVE stands for Common Vulnerabilities and Exposures. Information from the CVE record that describes this vulnerability.

Protobuf type google.cloud.securitycenter.v2.Cve

Implements

CveOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllReferences(Iterable<? extends Reference> values)

public Cve.Builder addAllReferences(Iterable<? extends Reference> values)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.Reference>
Returns
Type Description
Cve.Builder

addReferences(Reference value)

public Cve.Builder addReferences(Reference value)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
value Reference
Returns
Type Description
Cve.Builder

addReferences(Reference.Builder builderForValue)

public Cve.Builder addReferences(Reference.Builder builderForValue)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
builderForValue Reference.Builder
Returns
Type Description
Cve.Builder

addReferences(int index, Reference value)

public Cve.Builder addReferences(int index, Reference value)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
value Reference
Returns
Type Description
Cve.Builder

addReferences(int index, Reference.Builder builderForValue)

public Cve.Builder addReferences(int index, Reference.Builder builderForValue)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
builderForValue Reference.Builder
Returns
Type Description
Cve.Builder

addReferencesBuilder()

public Reference.Builder addReferencesBuilder()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
Reference.Builder

addReferencesBuilder(int index)

public Reference.Builder addReferencesBuilder(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cve build()
Returns
Type Description
Cve

buildPartial()

public Cve buildPartial()
Returns
Type Description
Cve

clear()

public Cve.Builder clear()
Returns
Type Description
Cve.Builder
Overrides

clearCvssv3()

public Cve.Builder clearCvssv3()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Returns
Type Description
Cve.Builder

clearExploitReleaseDate()

public Cve.Builder clearExploitReleaseDate()

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Returns
Type Description
Cve.Builder

clearExploitationActivity()

public Cve.Builder clearExploitationActivity()

The exploitation activity of the vulnerability in the wild.

.google.cloud.securitycenter.v2.Cve.ExploitationActivity exploitation_activity = 6;

Returns
Type Description
Cve.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Cve.Builder clearId()

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Returns
Type Description
Cve.Builder

This builder for chaining.

clearImpact()

public Cve.Builder clearImpact()

The potential impact of the vulnerability if it was to be exploited.

.google.cloud.securitycenter.v2.Cve.RiskRating impact = 5;

Returns
Type Description
Cve.Builder

This builder for chaining.

clearObservedInTheWild()

public Cve.Builder clearObservedInTheWild()

Whether or not the vulnerability has been observed in the wild.

bool observed_in_the_wild = 7;

Returns
Type Description
Cve.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferences()

public Cve.Builder clearReferences()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
Cve.Builder

clearUpstreamFixAvailable()

public Cve.Builder clearUpstreamFixAvailable()

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Returns
Type Description
Cve.Builder

This builder for chaining.

clearZeroDay()

public Cve.Builder clearZeroDay()

Whether or not the vulnerability was zero day when the finding was published.

bool zero_day = 8;

Returns
Type Description
Cve.Builder

This builder for chaining.

clone()

public Cve.Builder clone()
Returns
Type Description
Cve.Builder
Overrides

getCvssv3()

public Cvssv3 getCvssv3()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Returns
Type Description
Cvssv3

The cvssv3.

getCvssv3Builder()

public Cvssv3.Builder getCvssv3Builder()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Returns
Type Description
Cvssv3.Builder

getCvssv3OrBuilder()

public Cvssv3OrBuilder getCvssv3OrBuilder()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Returns
Type Description
Cvssv3OrBuilder

getDefaultInstanceForType()

public Cve getDefaultInstanceForType()
Returns
Type Description
Cve

getDescriptorForType()

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

getExploitReleaseDate()

public Timestamp getExploitReleaseDate()

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Returns
Type Description
Timestamp

The exploitReleaseDate.

getExploitReleaseDateBuilder()

public Timestamp.Builder getExploitReleaseDateBuilder()

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Returns
Type Description
Builder

getExploitReleaseDateOrBuilder()

public TimestampOrBuilder getExploitReleaseDateOrBuilder()

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Returns
Type Description
TimestampOrBuilder

getExploitationActivity()

public Cve.ExploitationActivity getExploitationActivity()

The exploitation activity of the vulnerability in the wild.

.google.cloud.securitycenter.v2.Cve.ExploitationActivity exploitation_activity = 6;

Returns
Type Description
Cve.ExploitationActivity

The exploitationActivity.

getExploitationActivityValue()

public int getExploitationActivityValue()

The exploitation activity of the vulnerability in the wild.

.google.cloud.securitycenter.v2.Cve.ExploitationActivity exploitation_activity = 6;

Returns
Type Description
int

The enum numeric value on the wire for exploitationActivity.

getId()

public String getId()

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getImpact()

public Cve.RiskRating getImpact()

The potential impact of the vulnerability if it was to be exploited.

.google.cloud.securitycenter.v2.Cve.RiskRating impact = 5;

Returns
Type Description
Cve.RiskRating

The impact.

getImpactValue()

public int getImpactValue()

The potential impact of the vulnerability if it was to be exploited.

.google.cloud.securitycenter.v2.Cve.RiskRating impact = 5;

Returns
Type Description
int

The enum numeric value on the wire for impact.

getObservedInTheWild()

public boolean getObservedInTheWild()

Whether or not the vulnerability has been observed in the wild.

bool observed_in_the_wild = 7;

Returns
Type Description
boolean

The observedInTheWild.

getReferences(int index)

public Reference getReferences(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference

getReferencesBuilder(int index)

public Reference.Builder getReferencesBuilder(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference.Builder

getReferencesBuilderList()

public List<Reference.Builder> getReferencesBuilderList()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
List<Builder>

getReferencesCount()

public int getReferencesCount()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
int

getReferencesList()

public List<Reference> getReferencesList()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public ReferenceOrBuilder getReferencesOrBuilder(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends ReferenceOrBuilder> getReferencesOrBuilderList()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.ReferenceOrBuilder>

getUpstreamFixAvailable()

public boolean getUpstreamFixAvailable()

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Returns
Type Description
boolean

The upstreamFixAvailable.

getZeroDay()

public boolean getZeroDay()

Whether or not the vulnerability was zero day when the finding was published.

bool zero_day = 8;

Returns
Type Description
boolean

The zeroDay.

hasCvssv3()

public boolean hasCvssv3()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Returns
Type Description
boolean

Whether the cvssv3 field is set.

hasExploitReleaseDate()

public boolean hasExploitReleaseDate()

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Returns
Type Description
boolean

Whether the exploitReleaseDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCvssv3(Cvssv3 value)

public Cve.Builder mergeCvssv3(Cvssv3 value)

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Parameter
Name Description
value Cvssv3
Returns
Type Description
Cve.Builder

mergeExploitReleaseDate(Timestamp value)

public Cve.Builder mergeExploitReleaseDate(Timestamp value)

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Cve.Builder

mergeFrom(Cve other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReferences(int index)

public Cve.Builder removeReferences(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Cve.Builder

setCvssv3(Cvssv3 value)

public Cve.Builder setCvssv3(Cvssv3 value)

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Parameter
Name Description
value Cvssv3
Returns
Type Description
Cve.Builder

setCvssv3(Cvssv3.Builder builderForValue)

public Cve.Builder setCvssv3(Cvssv3.Builder builderForValue)

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v2.Cvssv3 cvssv3 = 3;

Parameter
Name Description
builderForValue Cvssv3.Builder
Returns
Type Description
Cve.Builder

setExploitReleaseDate(Timestamp value)

public Cve.Builder setExploitReleaseDate(Timestamp value)

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Cve.Builder

setExploitReleaseDate(Timestamp.Builder builderForValue)

public Cve.Builder setExploitReleaseDate(Timestamp.Builder builderForValue)

Date the first publicly available exploit or PoC was released.

.google.protobuf.Timestamp exploit_release_date = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Cve.Builder

setExploitationActivity(Cve.ExploitationActivity value)

public Cve.Builder setExploitationActivity(Cve.ExploitationActivity value)

The exploitation activity of the vulnerability in the wild.

.google.cloud.securitycenter.v2.Cve.ExploitationActivity exploitation_activity = 6;

Parameter
Name Description
value Cve.ExploitationActivity

The exploitationActivity to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setExploitationActivityValue(int value)

public Cve.Builder setExploitationActivityValue(int value)

The exploitation activity of the vulnerability in the wild.

.google.cloud.securitycenter.v2.Cve.ExploitationActivity exploitation_activity = 6;

Parameter
Name Description
value int

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

Returns
Type Description
Cve.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public Cve.Builder setId(String value)

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Cve.Builder setIdBytes(ByteString value)

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setImpact(Cve.RiskRating value)

public Cve.Builder setImpact(Cve.RiskRating value)

The potential impact of the vulnerability if it was to be exploited.

.google.cloud.securitycenter.v2.Cve.RiskRating impact = 5;

Parameter
Name Description
value Cve.RiskRating

The impact to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setImpactValue(int value)

public Cve.Builder setImpactValue(int value)

The potential impact of the vulnerability if it was to be exploited.

.google.cloud.securitycenter.v2.Cve.RiskRating impact = 5;

Parameter
Name Description
value int

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

Returns
Type Description
Cve.Builder

This builder for chaining.

setObservedInTheWild(boolean value)

public Cve.Builder setObservedInTheWild(boolean value)

Whether or not the vulnerability has been observed in the wild.

bool observed_in_the_wild = 7;

Parameter
Name Description
value boolean

The observedInTheWild to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setReferences(int index, Reference value)

public Cve.Builder setReferences(int index, Reference value)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
value Reference
Returns
Type Description
Cve.Builder

setReferences(int index, Reference.Builder builderForValue)

public Cve.Builder setReferences(int index, Reference.Builder builderForValue)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
builderForValue Reference.Builder
Returns
Type Description
Cve.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpstreamFixAvailable(boolean value)

public Cve.Builder setUpstreamFixAvailable(boolean value)

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Parameter
Name Description
value boolean

The upstreamFixAvailable to set.

Returns
Type Description
Cve.Builder

This builder for chaining.

setZeroDay(boolean value)

public Cve.Builder setZeroDay(boolean value)

Whether or not the vulnerability was zero day when the finding was published.

bool zero_day = 8;

Parameter
Name Description
value boolean

The zeroDay to set.

Returns
Type Description
Cve.Builder

This builder for chaining.