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.

Protobuf type google.cloud.securitycenter.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.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6;

Returns
TypeDescription
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
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.securitycenter.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.

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

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

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

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

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

The enum numeric value on the wire for confidentialityImpact.

getDefaultInstanceForType()

public Cvssv3 getDefaultInstanceForType()
Returns
TypeDescription
Cvssv3

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for userInteraction.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cvssv3 other)

public Cvssv3.Builder mergeFrom(Cvssv3 other)
Parameter
NameDescription
otherCvssv3
Returns
TypeDescription
Cvssv3.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cvssv3.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCvssv3.AttackComplexity

The attackComplexity to set.

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

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

Returns
TypeDescription
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
NameDescription
valueCvssv3.AttackVector

The attackVector to set.

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

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

Returns
TypeDescription
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
NameDescription
valueCvssv3.Impact

The availabilityImpact to set.

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

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

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

The baseScore to set.

Returns
TypeDescription
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
NameDescription
valueCvssv3.Impact

The confidentialityImpact to set.

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

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

Returns
TypeDescription
Cvssv3.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The integrityImpact to set.

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

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

Returns
TypeDescription
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
NameDescription
valueCvssv3.PrivilegesRequired

The privilegesRequired to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueCvssv3.Scope

The scope to set.

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

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

Returns
TypeDescription
Cvssv3.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

The userInteraction to set.

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

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

Returns
TypeDescription
Cvssv3.Builder

This builder for chaining.