public static final class CVSS.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CVSS.BuilderImplements
CVSSOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CVSS.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CVSS.Builder |
build()
public CVSS build()
Returns | |
---|---|
Type | Description |
CVSS |
buildPartial()
public CVSS buildPartial()
Returns | |
---|---|
Type | Description |
CVSS |
clear()
public CVSS.Builder clear()
Returns | |
---|---|
Type | Description |
CVSS.Builder |
clearAttackComplexity()
public CVSS.Builder clearAttackComplexity()
.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
Returns | |
---|---|
Type | Description |
CVSS.Builder | 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 |
CVSS.Builder | This builder for chaining. |
clearAuthentication()
public CVSS.Builder clearAuthentication()
.grafeas.v1.CVSS.Authentication authentication = 6;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearAvailabilityImpact()
public CVSS.Builder clearAvailabilityImpact()
.grafeas.v1.CVSS.Impact availability_impact = 12;
Returns | |
---|---|
Type | Description |
CVSS.Builder | 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 |
CVSS.Builder | This builder for chaining. |
clearConfidentialityImpact()
public CVSS.Builder clearConfidentialityImpact()
.grafeas.v1.CVSS.Impact confidentiality_impact = 10;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearExploitabilityScore()
public CVSS.Builder clearExploitabilityScore()
float exploitability_score = 2;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CVSS.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CVSS.Builder |
clearImpactScore()
public CVSS.Builder clearImpactScore()
float impact_score = 3;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearIntegrityImpact()
public CVSS.Builder clearIntegrityImpact()
.grafeas.v1.CVSS.Impact integrity_impact = 11;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CVSS.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CVSS.Builder |
clearPrivilegesRequired()
public CVSS.Builder clearPrivilegesRequired()
.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearScope()
public CVSS.Builder clearScope()
.grafeas.v1.CVSS.Scope scope = 9;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clearUserInteraction()
public CVSS.Builder clearUserInteraction()
.grafeas.v1.CVSS.UserInteraction user_interaction = 8;
Returns | |
---|---|
Type | Description |
CVSS.Builder | This builder for chaining. |
clone()
public CVSS.Builder clone()
Returns | |
---|---|
Type | Description |
CVSS.Builder |
getAttackComplexity()
public CVSS.AttackComplexity getAttackComplexity()
.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
Returns | |
---|---|
Type | Description |
CVSS.AttackComplexity | 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 |
CVSS.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.
.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 |
CVSS.Authentication | 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 |
CVSS.Impact | 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