Class CVSSv3.Builder (2.6.0)

public static final class CVSSv3.Builder extends GeneratedMessageV3.Builder<CVSSv3.Builder> implements CVSSv3OrBuilder

Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document

Protobuf type google.cloud.osconfig.v1.CVSSv3

Implements

CVSSv3OrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CVSSv3 build()
Returns
TypeDescription
CVSSv3

buildPartial()

public CVSSv3 buildPartial()
Returns
TypeDescription
CVSSv3

clear()

public CVSSv3.Builder clear()
Returns
TypeDescription
CVSSv3.Builder
Overrides

clearAttackComplexity()

public CVSSv3.Builder clearAttackComplexity()

This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.

.google.cloud.osconfig.v1.CVSSv3.AttackComplexity attack_complexity = 6;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearAttackVector()

public CVSSv3.Builder clearAttackVector()

This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.osconfig.v1.CVSSv3.AttackVector attack_vector = 5;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearAvailabilityImpact()

public CVSSv3.Builder clearAvailabilityImpact()

This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.

.google.cloud.osconfig.v1.CVSSv3.Impact availability_impact = 12;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearBaseScore()

public CVSSv3.Builder clearBaseScore()

The base score is a function of the base metric scores. https://www.first.org/cvss/specification-document#Base-Metrics

float base_score = 1;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearConfidentialityImpact()

public CVSSv3.Builder clearConfidentialityImpact()

This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.

.google.cloud.osconfig.v1.CVSSv3.Impact confidentiality_impact = 10;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearExploitabilityScore()

public CVSSv3.Builder clearExploitabilityScore()

The Exploitability sub-score equation is derived from the Base Exploitability metrics. https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics

float exploitability_score = 2;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImpactScore()

public CVSSv3.Builder clearImpactScore()

The Impact sub-score equation is derived from the Base Impact metrics.

float impact_score = 3;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearIntegrityImpact()

public CVSSv3.Builder clearIntegrityImpact()

This metric measures the impact to integrity of a successfully exploited vulnerability.

.google.cloud.osconfig.v1.CVSSv3.Impact integrity_impact = 11;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CVSSv3.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CVSSv3.Builder
Overrides

clearPrivilegesRequired()

public CVSSv3.Builder clearPrivilegesRequired()

This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.

.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired privileges_required = 7;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearScope()

public CVSSv3.Builder clearScope()

The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.

.google.cloud.osconfig.v1.CVSSv3.Scope scope = 9;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clearUserInteraction()

public CVSSv3.Builder clearUserInteraction()

This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.

.google.cloud.osconfig.v1.CVSSv3.UserInteraction user_interaction = 8;

Returns
TypeDescription
CVSSv3.Builder

This builder for chaining.

clone()

public CVSSv3.Builder clone()
Returns
TypeDescription
CVSSv3.Builder
Overrides

getAttackComplexity()

public CVSSv3.AttackComplexity getAttackComplexity()

This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.

.google.cloud.osconfig.v1.CVSSv3.AttackComplexity attack_complexity = 6;

Returns
TypeDescription
CVSSv3.AttackComplexity

The attackComplexity.

getAttackComplexityValue()

public int getAttackComplexityValue()

This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.

.google.cloud.osconfig.v1.CVSSv3.AttackComplexity attack_complexity = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for attackComplexity.

getAttackVector()

public CVSSv3.AttackVector getAttackVector()

This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.osconfig.v1.CVSSv3.AttackVector attack_vector = 5;

Returns
TypeDescription
CVSSv3.AttackVector

The attackVector.

getAttackVectorValue()

public int getAttackVectorValue()

This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.osconfig.v1.CVSSv3.AttackVector attack_vector = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for attackVector.

getAvailabilityImpact()

public CVSSv3.Impact getAvailabilityImpact()

This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.

.google.cloud.osconfig.v1.CVSSv3.Impact availability_impact = 12;

Returns
TypeDescription
CVSSv3.Impact

The availabilityImpact.

getAvailabilityImpactValue()

public int getAvailabilityImpactValue()

This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.

.google.cloud.osconfig.v1.CVSSv3.Impact av