Class CVSSv3 (2.22.0)

public final class CVSSv3 extends GeneratedMessageV3 implements CVSSv3OrBuilder

Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document

Protobuf type google.cloud.osconfig.v1alpha.CVSSv3

Implements

CVSSv3OrBuilder

Static Fields

ATTACK_COMPLEXITY_FIELD_NUMBER

public static final int ATTACK_COMPLEXITY_FIELD_NUMBER
Field Value
TypeDescription
int

ATTACK_VECTOR_FIELD_NUMBER

public static final int ATTACK_VECTOR_FIELD_NUMBER
Field Value
TypeDescription
int

AVAILABILITY_IMPACT_FIELD_NUMBER

public static final int AVAILABILITY_IMPACT_FIELD_NUMBER
Field Value
TypeDescription
int

BASE_SCORE_FIELD_NUMBER

public static final int BASE_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENTIALITY_IMPACT_FIELD_NUMBER

public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER
Field Value
TypeDescription
int

EXPLOITABILITY_SCORE_FIELD_NUMBER

public static final int EXPLOITABILITY_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

IMPACT_SCORE_FIELD_NUMBER

public static final int IMPACT_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

INTEGRITY_IMPACT_FIELD_NUMBER

public static final int INTEGRITY_IMPACT_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVILEGES_REQUIRED_FIELD_NUMBER

public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER
Field Value
TypeDescription
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
TypeDescription
int

USER_INTERACTION_FIELD_NUMBER

public static final int USER_INTERACTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CVSSv3 getDefaultInstance()
Returns
TypeDescription
CVSSv3

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CVSSv3.Builder newBuilder()
Returns
TypeDescription
CVSSv3.Builder

newBuilder(CVSSv3 prototype)

public static CVSSv3.Builder newBuilder(CVSSv3 prototype)
Parameter
NameDescription
prototypeCVSSv3
Returns
TypeDescription
CVSSv3.Builder

parseDelimitedFrom(InputStream input)

public static CVSSv3 parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CVSSv3 parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CVSSv3 parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CVSSv3 parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CVSSv3 parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CVSSv3 parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CVSSv3 parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CVSSv3
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CVSSv3> parser()
Returns
TypeDescription
Parser<CVSSv3>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for attackComplexity.

getAttackVector()

public CVSSv3.AttackVector getAttackVector()

This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5;

Returns
TypeDescription
CVSSv3.AttackVector

The attackVector.

getAttackVectorValue()

public int getAttackVectorValue()

This metric reflects the context by which vulnerability exploitation is possible.

.google.cloud.osconfig.v1alpha.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.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12;

Returns
TypeDescription
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. https://www.first.org/cvss/specification-document#Base-Metrics

float base_score = 1;

Returns
TypeDescription
float

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.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for confidentialityImpact.

getDefaultInstanceForType()

public CVSSv3 getDefaultInstanceForType()
Returns
TypeDescription
CVSSv3

getExploitabilityScore()

public float getExploitabilityScore()

The Exploitability sub-score equation is derived from the Base Exploitability metrics. https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics

float exploitability_score = 2;

Returns
TypeDescription
float

The exploitabilityScore.

getImpactScore()

public float getImpactScore()

The Impact sub-score equation is derived from the Base Impact metrics.

float impact_score = 3;

Returns
TypeDescription
float

The impactScore.

getIntegrityImpact()

public CVSSv3.Impact getIntegrityImpact()

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

.google.cloud.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for integrityImpact.

getParserForType()

public Parser<CVSSv3> getParserForType()
Returns
TypeDescription
Parser<CVSSv3>
Overrides

getPrivilegesRequired()

public CVSSv3.PrivilegesRequired getPrivilegesRequired()

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

.google.cloud.osconfig.v1alpha.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.osconfig.v1alpha.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.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.Scope scope = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for scope.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.osconfig.v1alpha.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.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for userInteraction.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CVSSv3.Builder newBuilderForType()
Returns
TypeDescription
CVSSv3.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CVSSv3.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CVSSv3.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CVSSv3.Builder toBuilder()
Returns
TypeDescription
CVSSv3.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException