Class Cve.Builder (2.31.0)

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

CVE stands for Common Vulnerabilities and Exposures. More information: https://cve.mitre.org

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

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.

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.

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

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.

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.

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

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.

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.