Class Cve.Builder (2.47.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.v1.Cve

Implements

CveOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Reference>
Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
valueReference
Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
builderForValueReference.Builder
Returns
TypeDescription
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.v1.Reference references = 2;

Parameters
NameDescription
indexint
valueReference
Returns
TypeDescription
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.v1.Reference references = 2;

Parameters
NameDescription
indexint
builderForValueReference.Builder
Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Reference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cve build()
Returns
TypeDescription
Cve

buildPartial()

public Cve buildPartial()
Returns
TypeDescription
Cve

clear()

public Cve.Builder clear()
Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
Cve.Builder

clearExploitationActivity()

public Cve.Builder clearExploitationActivity()

The exploitation activity of the vulnerability in the wild.

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

Returns
TypeDescription
Cve.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Cve.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cve.Builder
Overrides

clearId()

public Cve.Builder clearId()

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

string id = 1;

Returns
TypeDescription
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.v1.Cve.RiskRating impact = 5;

Returns
TypeDescription
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
TypeDescription
Cve.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cve.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
Cve.Builder

clearUpstreamFixAvailable()

public Cve.Builder clearUpstreamFixAvailable()

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Returns
TypeDescription
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
TypeDescription
Cve.Builder

This builder for chaining.

clone()

public Cve.Builder clone()
Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
Cvssv3OrBuilder

getDefaultInstanceForType()

public Cve getDefaultInstanceForType()
Returns
TypeDescription
Cve

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExploitationActivity()

public Cve.ExploitationActivity getExploitationActivity()

The exploitation activity of the vulnerability in the wild.

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

Returns
TypeDescription
Cve.ExploitationActivity

The exploitationActivity.

getExploitationActivityValue()

public int getExploitationActivityValue()

The exploitation activity of the vulnerability in the wild.

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

Returns
TypeDescription
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
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
TypeDescription
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.v1.Cve.RiskRating impact = 5;

Returns
TypeDescription
Cve.RiskRating

The impact.

getImpactValue()

public int getImpactValue()

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

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

Returns
TypeDescription
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
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Reference references = 2;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v1.ReferenceOrBuilder>

getUpstreamFixAvailable()

public boolean getUpstreamFixAvailable()

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Returns
TypeDescription
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
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
boolean

Whether the cvssv3 field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Parameter
NameDescription
valueCvssv3
Returns
TypeDescription
Cve.Builder

mergeFrom(Cve other)

public Cve.Builder mergeFrom(Cve other)
Parameter
NameDescription
otherCve
Returns
TypeDescription
Cve.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cve.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Parameter
NameDescription
valueCvssv3
Returns
TypeDescription
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.v1.Cvssv3 cvssv3 = 3;

Parameter
NameDescription
builderForValueCvssv3.Builder
Returns
TypeDescription
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.v1.Cve.ExploitationActivity exploitation_activity = 6;

Parameter
NameDescription
valueCve.ExploitationActivity

The exploitationActivity to set.

Returns
TypeDescription
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.v1.Cve.ExploitationActivity exploitation_activity = 6;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Cve.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The id to set.

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

The bytes for id to set.

Returns
TypeDescription
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.v1.Cve.RiskRating impact = 5;

Parameter
NameDescription
valueCve.RiskRating

The impact to set.

Returns
TypeDescription
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.v1.Cve.RiskRating impact = 5;

Parameter
NameDescription
valueint

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

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

The observedInTheWild to set.

Returns
TypeDescription
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.v1.Reference references = 2;

Parameters
NameDescription
indexint
valueReference
Returns
TypeDescription
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.v1.Reference references = 2;

Parameters
NameDescription
indexint
builderForValueReference.Builder
Returns
TypeDescription
Cve.Builder

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

public Cve.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cve.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Cve.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The upstreamFixAvailable to set.

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

The zeroDay to set.

Returns
TypeDescription
Cve.Builder

This builder for chaining.