public static final class CVSSv3.Builder extends GeneratedMessage.Builder<CVSSv3.Builder> implements CVSSv3OrBuilderCommon Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document
Protobuf type grafeas.v1.CVSSv3
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CVSSv3.BuilderImplements
CVSSv3OrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearAttackComplexity()
public CVSSv3.Builder clearAttackComplexity().grafeas.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.
.grafeas.v1.CVSSv3.AttackVector attack_vector = 5;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearAvailabilityImpact()
public CVSSv3.Builder clearAvailabilityImpact().grafeas.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.
float base_score = 1;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearConfidentialityImpact()
public CVSSv3.Builder clearConfidentialityImpact().grafeas.v1.CVSSv3.Impact confidentiality_impact = 10;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearExploitabilityScore()
public CVSSv3.Builder clearExploitabilityScore()float exploitability_score = 2;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearImpactScore()
public CVSSv3.Builder clearImpactScore()float impact_score = 3;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearIntegrityImpact()
public CVSSv3.Builder clearIntegrityImpact().grafeas.v1.CVSSv3.Impact integrity_impact = 11;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearPrivilegesRequired()
public CVSSv3.Builder clearPrivilegesRequired().grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearScope()
public CVSSv3.Builder clearScope().grafeas.v1.CVSSv3.Scope scope = 9;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
clearUserInteraction()
public CVSSv3.Builder clearUserInteraction().grafeas.v1.CVSSv3.UserInteraction user_interaction = 8;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
getAttackComplexity()
public CVSSv3.AttackComplexity getAttackComplexity().grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.AttackComplexity |
The attackComplexity. |
getAttackComplexityValue()
public int getAttackComplexityValue().grafeas.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.
.grafeas.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.
.grafeas.v1.CVSSv3.AttackVector attack_vector = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for attackVector. |
getAvailabilityImpact()
public CVSSv3.Impact getAvailabilityImpact().grafeas.v1.CVSSv3.Impact availability_impact = 12;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Impact |
The availabilityImpact. |
getAvailabilityImpactValue()
public int getAvailabilityImpactValue().grafeas.v1.CVSSv3.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 |
float |
The baseScore. |
getConfidentialityImpact()
public CVSSv3.Impact getConfidentialityImpact().grafeas.v1.CVSSv3.Impact confidentiality_impact = 10;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Impact |
The confidentialityImpact. |
getConfidentialityImpactValue()
public int getConfidentialityImpactValue().grafeas.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 |
|
getExploitabilityScore()
public float getExploitabilityScore()float exploitability_score = 2;
| Returns | |
|---|---|
| Type | Description |
float |
The exploitabilityScore. |
getImpactScore()
public float getImpactScore()float impact_score = 3;
| Returns | |
|---|---|
| Type | Description |
float |
The impactScore. |
getIntegrityImpact()
public CVSSv3.Impact getIntegrityImpact().grafeas.v1.CVSSv3.Impact integrity_impact = 11;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Impact |
The integrityImpact. |
getIntegrityImpactValue()
public int getIntegrityImpactValue().grafeas.v1.CVSSv3.Impact integrity_impact = 11;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for integrityImpact. |
getPrivilegesRequired()
public CVSSv3.PrivilegesRequired getPrivilegesRequired().grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.PrivilegesRequired |
The privilegesRequired. |
getPrivilegesRequiredValue()
public int getPrivilegesRequiredValue().grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for privilegesRequired. |
getScope()
public CVSSv3.Scope getScope().grafeas.v1.CVSSv3.Scope scope = 9;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Scope |
The scope. |
getScopeValue()
public int getScopeValue().grafeas.v1.CVSSv3.Scope scope = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for scope. |
getUserInteraction()
public CVSSv3.UserInteraction getUserInteraction().grafeas.v1.CVSSv3.UserInteraction user_interaction = 8;
| Returns | |
|---|---|
| Type | Description |
CVSSv3.UserInteraction |
The userInteraction. |
getUserInteractionValue()
public int getUserInteractionValue().grafeas.v1.CVSSv3.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 |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CVSSv3.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
|
mergeFrom(CVSSv3 other)
public CVSSv3.Builder mergeFrom(CVSSv3 other)| Parameter | |
|---|---|
| Name | Description |
other |
CVSSv3 |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
|
setAttackComplexity(CVSSv3.AttackComplexity value)
public CVSSv3.Builder setAttackComplexity(CVSSv3.AttackComplexity value).grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.AttackComplexityThe attackComplexity to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setAttackComplexityValue(int value)
public CVSSv3.Builder setAttackComplexityValue(int value).grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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.
.grafeas.v1.CVSSv3.AttackVector attack_vector = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.AttackVectorThe 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.
.grafeas.v1.CVSSv3.AttackVector attack_vector = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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).grafeas.v1.CVSSv3.Impact availability_impact = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.ImpactThe availabilityImpact to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setAvailabilityImpactValue(int value)
public CVSSv3.Builder setAvailabilityImpactValue(int value).grafeas.v1.CVSSv3.Impact availability_impact = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for availabilityImpact to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setBaseScore(float value)
public CVSSv3.Builder setBaseScore(float value)The base score is a function of the base metric scores.
float base_score = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe baseScore to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setConfidentialityImpact(CVSSv3.Impact value)
public CVSSv3.Builder setConfidentialityImpact(CVSSv3.Impact value).grafeas.v1.CVSSv3.Impact confidentiality_impact = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.ImpactThe confidentialityImpact to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setConfidentialityImpactValue(int value)
public CVSSv3.Builder setConfidentialityImpactValue(int value).grafeas.v1.CVSSv3.Impact confidentiality_impact = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for confidentialityImpact to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setExploitabilityScore(float value)
public CVSSv3.Builder setExploitabilityScore(float value)float exploitability_score = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe exploitabilityScore to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setImpactScore(float value)
public CVSSv3.Builder setImpactScore(float value)float impact_score = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe impactScore to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setIntegrityImpact(CVSSv3.Impact value)
public CVSSv3.Builder setIntegrityImpact(CVSSv3.Impact value).grafeas.v1.CVSSv3.Impact integrity_impact = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.ImpactThe integrityImpact to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setIntegrityImpactValue(int value)
public CVSSv3.Builder setIntegrityImpactValue(int value).grafeas.v1.CVSSv3.Impact integrity_impact = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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).grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.PrivilegesRequiredThe privilegesRequired to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setPrivilegesRequiredValue(int value)
public CVSSv3.Builder setPrivilegesRequiredValue(int value).grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for privilegesRequired to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setScope(CVSSv3.Scope value)
public CVSSv3.Builder setScope(CVSSv3.Scope value).grafeas.v1.CVSSv3.Scope scope = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.ScopeThe scope to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setScopeValue(int value)
public CVSSv3.Builder setScopeValue(int value).grafeas.v1.CVSSv3.Scope scope = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for scope to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setUserInteraction(CVSSv3.UserInteraction value)
public CVSSv3.Builder setUserInteraction(CVSSv3.UserInteraction value).grafeas.v1.CVSSv3.UserInteraction user_interaction = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
CVSSv3.UserInteractionThe userInteraction to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |
setUserInteractionValue(int value)
public CVSSv3.Builder setUserInteractionValue(int value).grafeas.v1.CVSSv3.UserInteraction user_interaction = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for userInteraction to set. |
| Returns | |
|---|---|
| Type | Description |
CVSSv3.Builder |
This builder for chaining. |