Class Cvssv3.Builder (2.53.0)

public static final class Cvssv3.Builder extends GeneratedMessageV3.Builder<Cvssv3.Builder> implements Cvssv3OrBuilder

Common Vulnerability Scoring System version 3.

Protobuf type google.cloud.securitycenter.v1.Cvssv3

Implements

Cvssv3OrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cvssv3 build()
Returns
Type Description
Cvssv3

buildPartial()

public Cvssv3 buildPartial()
Returns
Type Description
Cvssv3

clear()

public Cvssv3.Builder clear()
Returns
Type Description
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.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

clearAttackVector()

public Cvssv3.Builder clearAttackVector()

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;

Returns
Type Description
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.securitycenter.v1.Cvssv3.Impact availability_impact = 12;

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

clearBaseScore()

public Cvssv3.Builder clearBaseScore()

The base score is a function of the base metric scores.

double base_score = 1;

Returns
Type Description
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.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10;

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntegrityImpact()

public Cvssv3.Builder clearIntegrityImpact()

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

.google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11;

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cvssv3.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7;

Returns
Type Description
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.securitycenter.v1.Cvssv3.Scope scope = 9;

Returns
Type Description
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.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8;

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

clone()

public Cvssv3.Builder clone()
Returns
Type Description
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.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Returns
Type Description
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.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Returns
Type Description
int

The enum numeric value on the wire for attackComplexity.

getAttackVector()

public Cvssv3.AttackVector getAttackVector()

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;

Returns
Type Description
Cvssv3.AttackVector

The attackVector.

getAttackVectorValue()

public int getAttackVectorValue()

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;

Returns
Type Description
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.securitycenter.v1.Cvssv3.Impact availability_impact = 12;

Returns
Type Description
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.securitycenter.v1.Cvssv3.Impact availability_impact = 12;

Returns
Type Description
int

The enum numeric value on the wire for availabilityImpact.

getBaseScore()

public double getBaseScore()

The base score is a function of the base metric scores.

double base_score = 1;

Returns
Type Description
double

The baseScore.

getConfidentialityImpact()

public Cvssv3.Impact getConfidentialityImpact()

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.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10;

Returns
Type Description
Cvssv3.Impact

The confidentialityImpact.

getConfidentialityImpactValue()

public int getConfidentialityImpactValue()

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.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10;

Returns
Type Description
int

The enum numeric value on the wire for confidentialityImpact.

getDefaultInstanceForType()

public Cvssv3 getDefaultInstanceForType()
Returns
Type Description
Cvssv3

getDescriptorForType()

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

getIntegrityImpact()

public Cvssv3.Impact getIntegrityImpact()

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

.google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11;

Returns
Type Description
Cvssv3.Impact

The integrityImpact.

getIntegrityImpactValue()

public int getIntegrityImpactValue()

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

.google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11;

Returns
Type Description
int

The enum numeric value on the wire for integrityImpact.

getPrivilegesRequired()

public Cvssv3.PrivilegesRequired getPrivilegesRequired()

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

.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7;

Returns
Type Description
Cvssv3.PrivilegesRequired

The privilegesRequired.

getPrivilegesRequiredValue()

public int getPrivilegesRequiredValue()

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

.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7;

Returns
Type Description
int

The enum numeric value on the wire for privilegesRequired.

getScope()

public Cvssv3.Scope getScope()

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

.google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9;

Returns
Type Description
Cvssv3.Scope

The scope.

getScopeValue()

public int getScopeValue()

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

.google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9;

Returns
Type Description
int

The enum numeric value on the wire for scope.

getUserInteraction()

public Cvssv3.UserInteraction getUserInteraction()

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.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8;

Returns
Type Description
Cvssv3.UserInteraction

The userInteraction.

getUserInteractionValue()

public int getUserInteractionValue()

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.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8;

Returns
Type Description
int

The enum numeric value on the wire for userInteraction.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cvssv3 other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttackComplexity(Cvssv3.AttackComplexity value)

public Cvssv3.Builder setAttackComplexity(Cvssv3.AttackComplexity value)

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

.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Parameter
Name Description
value Cvssv3.AttackComplexity

The attackComplexity to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setAttackComplexityValue(int value)

public Cvssv3.Builder setAttackComplexityValue(int value)

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

.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setAttackVector(Cvssv3.AttackVector value)

public Cvssv3.Builder setAttackVector(Cvssv3.AttackVector value)

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;

Parameter
Name Description
value Cvssv3.AttackVector

The attackVector to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setAttackVectorValue(int value)

public Cvssv3.Builder setAttackVectorValue(int value)

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setAvailabilityImpact(Cvssv3.Impact value)

public Cvssv3.Builder setAvailabilityImpact(Cvssv3.Impact value)

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

.google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12;

Parameter
Name Description
value Cvssv3.Impact

The availabilityImpact to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setAvailabilityImpactValue(int value)

public Cvssv3.Builder setAvailabilityImpactValue(int value)

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

.google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setBaseScore(double value)

public Cvssv3.Builder setBaseScore(double value)

The base score is a function of the base metric scores.

double base_score = 1;

Parameter
Name Description
value double

The baseScore to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setConfidentialityImpact(Cvssv3.Impact value)

public Cvssv3.Builder setConfidentialityImpact(Cvssv3.Impact value)

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.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10;

Parameter
Name Description
value Cvssv3.Impact

The confidentialityImpact to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setConfidentialityImpactValue(int value)

public Cvssv3.Builder setConfidentialityImpactValue(int value)

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.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntegrityImpact(Cvssv3.Impact value)

public Cvssv3.Builder setIntegrityImpact(Cvssv3.Impact value)

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

.google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11;

Parameter
Name Description
value Cvssv3.Impact

The integrityImpact to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setIntegrityImpactValue(int value)

public Cvssv3.Builder setIntegrityImpactValue(int value)

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

.google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setPrivilegesRequired(Cvssv3.PrivilegesRequired value)

public Cvssv3.Builder setPrivilegesRequired(Cvssv3.PrivilegesRequired value)

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

.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7;

Parameter
Name Description
value Cvssv3.PrivilegesRequired

The privilegesRequired to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setPrivilegesRequiredValue(int value)

public Cvssv3.Builder setPrivilegesRequiredValue(int value)

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

.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

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

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

setScope(Cvssv3.Scope value)

public Cvssv3.Builder setScope(Cvssv3.Scope value)

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

.google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9;

Parameter
Name Description
value Cvssv3.Scope

The scope to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setScopeValue(int value)

public Cvssv3.Builder setScopeValue(int value)

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

.google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserInteraction(Cvssv3.UserInteraction value)

public Cvssv3.Builder setUserInteraction(Cvssv3.UserInteraction value)

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.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8;

Parameter
Name Description
value Cvssv3.UserInteraction

The userInteraction to set.

Returns
Type Description
Cvssv3.Builder

This builder for chaining.

setUserInteractionValue(int value)

public Cvssv3.Builder setUserInteractionValue(int value)

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.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8;

Parameter
Name Description
value int

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

Returns
Type Description
Cvssv3.Builder

This builder for chaining.