Class CVSS.Builder (2.89.0)

  public 
  
 static 
  
 final 
  
 class 
 CVSS 
 . 
 Builder 
  
 extends 
  
 GeneratedMessage 
 . 
 Builder<CVSS 
 . 
 Builder 
>  
 implements 
  
 CVSSOrBuilder 
 

Common Vulnerability Scoring System. For details, see https://www.first.org/cvss/specification-document This is a message we will try to use for storing various versions of CVSS rather than making a separate proto for storing a specific version.

Protobuf type grafeas.v1.CVSS

Implements

CVSSOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

  public 
  
 CVSS 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 CVSS 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 CVSS 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearAttackComplexity()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearAttackComplexity 
 () 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
Type
Description

This builder for chaining.

clearAttackVector()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearAttackVector 
 () 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Returns
Type
Description

This builder for chaining.

clearAuthentication()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearAuthentication 
 () 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Returns
Type
Description

This builder for chaining.

clearAvailabilityImpact()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearAvailabilityImpact 
 () 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Returns
Type
Description

This builder for chaining.

clearBaseScore()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearBaseScore 
 () 
 

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

float base_score = 1;

Returns
Type
Description

This builder for chaining.

clearConfidentialityImpact()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearConfidentialityImpact 
 () 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Returns
Type
Description

This builder for chaining.

clearExploitabilityScore()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearExploitabilityScore 
 () 
 

float exploitability_score = 2;

Returns
Type
Description

This builder for chaining.

clearImpactScore()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearImpactScore 
 () 
 

float impact_score = 3;

Returns
Type
Description

This builder for chaining.

clearIntegrityImpact()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearIntegrityImpact 
 () 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Returns
Type
Description

This builder for chaining.

clearPrivilegesRequired()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearPrivilegesRequired 
 () 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Returns
Type
Description

This builder for chaining.

clearScope()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearScope 
 () 
 

.grafeas.v1.CVSS.Scope scope = 9;

Returns
Type
Description

This builder for chaining.

clearUserInteraction()

  public 
  
 CVSS 
 . 
 Builder 
  
 clearUserInteraction 
 () 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
Type
Description

This builder for chaining.

getAttackComplexity()

  public 
  
 CVSS 
 . 
 AttackComplexity 
  
 getAttackComplexity 
 () 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
Type
Description

The attackComplexity.

getAttackComplexityValue()

  public 
  
 int 
  
 getAttackComplexityValue 
 () 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
Type
Description
int

The enum numeric value on the wire for attackComplexity.

getAttackVector()

  public 
  
 CVSS 
 . 
 AttackVector 
  
 getAttackVector 
 () 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Returns
Type
Description

The attackVector.

getAttackVectorValue()

  public 
  
 int 
  
 getAttackVectorValue 
 () 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Returns
Type
Description
int

The enum numeric value on the wire for attackVector.

getAuthentication()

  public 
  
 CVSS 
 . 
 Authentication 
  
 getAuthentication 
 () 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Returns
Type
Description

The authentication.

getAuthenticationValue()

  public 
  
 int 
  
 getAuthenticationValue 
 () 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Returns
Type
Description
int

The enum numeric value on the wire for authentication.

getAvailabilityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getAvailabilityImpact 
 () 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Returns
Type
Description

The availabilityImpact.

getAvailabilityImpactValue()

  public 
  
 int 
  
 getAvailabilityImpactValue 
 () 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Returns
Type
Description
int

The enum numeric value on the wire for availabilityImpact.

getBaseScore()

  public 
  
 float 
  
 getBaseScore 
 () 
 

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

float base_score = 1;

Returns
Type
Description

The baseScore.

getConfidentialityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getConfidentialityImpact 
 () 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Returns
Type
Description

The confidentialityImpact.

getConfidentialityImpactValue()

  public 
  
 int 
  
 getConfidentialityImpactValue 
 () 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Returns
Type
Description
int

The enum numeric value on the wire for confidentialityImpact.

getDefaultInstanceForType()

  public 
  
 CVSS 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getExploitabilityScore()

  public 
  
 float 
  
 getExploitabilityScore 
 () 
 

float exploitability_score = 2;

Returns
Type
Description

The exploitabilityScore.

getImpactScore()

  public 
  
 float 
  
 getImpactScore 
 () 
 

float impact_score = 3;

Returns
Type
Description

The impactScore.

getIntegrityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getIntegrityImpact 
 () 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Returns
Type
Description

The integrityImpact.

getIntegrityImpactValue()

  public 
  
 int 
  
 getIntegrityImpactValue 
 () 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Returns
Type
Description
int

The enum numeric value on the wire for integrityImpact.

getPrivilegesRequired()

  public 
  
 CVSS 
 . 
 PrivilegesRequired 
  
 getPrivilegesRequired 
 () 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Returns
Type
Description

The privilegesRequired.

getPrivilegesRequiredValue()

  public 
  
 int 
  
 getPrivilegesRequiredValue 
 () 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Returns
Type
Description
int

The enum numeric value on the wire for privilegesRequired.

getScope()

  public 
  
 CVSS 
 . 
 Scope 
  
 getScope 
 () 
 

.grafeas.v1.CVSS.Scope scope = 9;

Returns
Type
Description

The scope.

getScopeValue()

  public 
  
 int 
  
 getScopeValue 
 () 
 

.grafeas.v1.CVSS.Scope scope = 9;

Returns
Type
Description
int

The enum numeric value on the wire for scope.

getUserInteraction()

  public 
  
 CVSS 
 . 
 UserInteraction 
  
 getUserInteraction 
 () 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
Type
Description

The userInteraction.

getUserInteractionValue()

  public 
  
 int 
  
 getUserInteractionValue 
 () 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
Type
Description
int

The enum numeric value on the wire for userInteraction.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CVSS other)

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

setAttackComplexity(CVSS.AttackComplexity value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAttackComplexity 
 ( 
 CVSS 
 . 
 AttackComplexity 
  
 value 
 ) 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Parameter
Name
Description
value
CVSS.AttackComplexity

The attackComplexity to set.

Returns
Type
Description

This builder for chaining.

setAttackComplexityValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAttackComplexityValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setAttackVector(CVSS.AttackVector value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAttackVector 
 ( 
 CVSS 
 . 
 AttackVector 
  
 value 
 ) 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Parameter
Name
Description
value
CVSS.AttackVector

The attackVector to set.

Returns
Type
Description

This builder for chaining.

setAttackVectorValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAttackVectorValue 
 ( 
 int 
  
 value 
 ) 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setAuthentication(CVSS.Authentication value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAuthentication 
 ( 
 CVSS 
 . 
 Authentication 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Parameter
Name
Description
value
CVSS.Authentication

The authentication to set.

Returns
Type
Description

This builder for chaining.

setAuthenticationValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAuthenticationValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setAvailabilityImpact(CVSS.Impact value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAvailabilityImpact 
 ( 
 CVSS 
 . 
 Impact 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Parameter
Name
Description
value
CVSS.Impact

The availabilityImpact to set.

Returns
Type
Description

This builder for chaining.

setAvailabilityImpactValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setAvailabilityImpactValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setBaseScore(float value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setBaseScore 
 ( 
 float 
  
 value 
 ) 
 

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

float base_score = 1;

Parameter
Name
Description
value
float

The baseScore to set.

Returns
Type
Description

This builder for chaining.

setConfidentialityImpact(CVSS.Impact value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setConfidentialityImpact 
 ( 
 CVSS 
 . 
 Impact 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Parameter
Name
Description
value
CVSS.Impact

The confidentialityImpact to set.

Returns
Type
Description

This builder for chaining.

setConfidentialityImpactValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setConfidentialityImpactValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setExploitabilityScore(float value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setExploitabilityScore 
 ( 
 float 
  
 value 
 ) 
 

float exploitability_score = 2;

Parameter
Name
Description
value
float

The exploitabilityScore to set.

Returns
Type
Description

This builder for chaining.

setImpactScore(float value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setImpactScore 
 ( 
 float 
  
 value 
 ) 
 

float impact_score = 3;

Parameter
Name
Description
value
float

The impactScore to set.

Returns
Type
Description

This builder for chaining.

setIntegrityImpact(CVSS.Impact value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setIntegrityImpact 
 ( 
 CVSS 
 . 
 Impact 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Parameter
Name
Description
value
CVSS.Impact

The integrityImpact to set.

Returns
Type
Description

This builder for chaining.

setIntegrityImpactValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setIntegrityImpactValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setPrivilegesRequired(CVSS.PrivilegesRequired value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setPrivilegesRequired 
 ( 
 CVSS 
 . 
 PrivilegesRequired 
  
 value 
 ) 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Parameter
Name
Description
value
CVSS.PrivilegesRequired

The privilegesRequired to set.

Returns
Type
Description

This builder for chaining.

setPrivilegesRequiredValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setPrivilegesRequiredValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setScope(CVSS.Scope value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setScope 
 ( 
 CVSS 
 . 
 Scope 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Scope scope = 9;

Parameter
Name
Description
value
CVSS.Scope

The scope to set.

Returns
Type
Description

This builder for chaining.

setScopeValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setScopeValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.Scope scope = 9;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

setUserInteraction(CVSS.UserInteraction value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setUserInteraction 
 ( 
 CVSS 
 . 
 UserInteraction 
  
 value 
 ) 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Parameter
Name
Description
value
CVSS.UserInteraction

The userInteraction to set.

Returns
Type
Description

This builder for chaining.

setUserInteractionValue(int value)

  public 
  
 CVSS 
 . 
 Builder 
  
 setUserInteractionValue 
 ( 
 int 
  
 value 
 ) 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Parameter
Name
Description
value
int

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

Returns
Type
Description

This builder for chaining.

Design a Mobile Site
View Site in Mobile | Classic
Share by: