Package io.grafeas.v1beta1.vulnerability
Class CVSSv3
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grafeas.v1beta1.vulnerability.CVSSv3
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CVSSv3OrBuilder,Serializable
public final class CVSSv3 extends com.google.protobuf.GeneratedMessageV3 implements CVSSv3OrBuilder
Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document
Protobuf typegrafeas.v1beta1.vulnerability.CVSSv3- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCVSSv3.AttackComplexityProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.AttackComplexitystatic classCVSSv3.AttackVectorProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.AttackVectorstatic classCVSSv3.BuilderCommon Vulnerability Scoring System version 3.static classCVSSv3.ImpactProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.Impactstatic classCVSSv3.PrivilegesRequiredProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.PrivilegesRequiredstatic classCVSSv3.ScopeProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.Scopestatic classCVSSv3.UserInteractionProtobuf enumgrafeas.v1beta1.vulnerability.CVSSv3.UserInteraction-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTACK_COMPLEXITY_FIELD_NUMBERstatic intATTACK_VECTOR_FIELD_NUMBERstatic intAVAILABILITY_IMPACT_FIELD_NUMBERstatic intBASE_SCORE_FIELD_NUMBERstatic intCONFIDENTIALITY_IMPACT_FIELD_NUMBERstatic intEXPLOITABILITY_SCORE_FIELD_NUMBERstatic intIMPACT_SCORE_FIELD_NUMBERstatic intINTEGRITY_IMPACT_FIELD_NUMBERstatic intPRIVILEGES_REQUIRED_FIELD_NUMBERstatic intSCOPE_FIELD_NUMBERstatic intUSER_INTERACTION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CVSSv3.AttackComplexitygetAttackComplexity().grafeas.v1beta1.vulnerability.CVSSv3.AttackComplexity attack_complexity = 6;intgetAttackComplexityValue().grafeas.v1beta1.vulnerability.CVSSv3.AttackComplexity attack_complexity = 6;CVSSv3.AttackVectorgetAttackVector()Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.intgetAttackVectorValue()Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.CVSSv3.ImpactgetAvailabilityImpact().grafeas.v1beta1.vulnerability.CVSSv3.Impact availability_impact = 12;intgetAvailabilityImpactValue().grafeas.v1beta1.vulnerability.CVSSv3.Impact availability_impact = 12;floatgetBaseScore()The base score is a function of the base metric scores.CVSSv3.ImpactgetConfidentialityImpact().grafeas.v1beta1.vulnerability.CVSSv3.Impact confidentiality_impact = 10;intgetConfidentialityImpactValue().grafeas.v1beta1.vulnerability.CVSSv3.Impact confidentiality_impact = 10;static CVSSv3getDefaultInstance()CVSSv3getDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()floatgetExploitabilityScore()float exploitability_score = 2;floatgetImpactScore()float impact_score = 3;CVSSv3.ImpactgetIntegrityImpact().grafeas.v1beta1.vulnerability.CVSSv3.Impact integrity_impact = 11;intgetIntegrityImpactValue().grafeas.v1beta1.vulnerability.CVSSv3.Impact integrity_impact = 11;com.google.protobuf.Parser<CVSSv3>getParserForType()CVSSv3.PrivilegesRequiredgetPrivilegesRequired().grafeas.v1beta1.vulnerability.CVSSv3.PrivilegesRequired privileges_required = 7;intgetPrivilegesRequiredValue().grafeas.v1beta1.vulnerability.CVSSv3.PrivilegesRequired privileges_required = 7;CVSSv3.ScopegetScope().grafeas.v1beta1.vulnerability.CVSSv3.Scope scope = 9;intgetScopeValue().grafeas.v1beta1.vulnerability.CVSSv3.Scope scope = 9;intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()CVSSv3.UserInteractiongetUserInteraction().grafeas.v1beta1.vulnerability.CVSSv3.UserInteraction user_interaction = 8;intgetUserInteractionValue().grafeas.v1beta1.vulnerability.CVSSv3.UserInteraction user_interaction = 8;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CVSSv3.BuildernewBuilder()static CVSSv3.BuildernewBuilder(CVSSv3 prototype)CVSSv3.BuildernewBuilderForType()protected CVSSv3.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CVSSv3parseDelimitedFrom(InputStream input)static CVSSv3parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CVSSv3parseFrom(byte[] data)static CVSSv3parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CVSSv3parseFrom(com.google.protobuf.ByteString data)static CVSSv3parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CVSSv3parseFrom(com.google.protobuf.CodedInputStream input)static CVSSv3parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CVSSv3parseFrom(InputStream input)static CVSSv3parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CVSSv3parseFrom(ByteBuffer data)static CVSSv3parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CVSSv3>parser()CVSSv3.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BASE_SCORE_FIELD_NUMBER
public static final int BASE_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPLOITABILITY_SCORE_FIELD_NUMBER
public static final int EXPLOITABILITY_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPACT_SCORE_FIELD_NUMBER
public static final int IMPACT_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTACK_VECTOR_FIELD_NUMBER
public static final int ATTACK_VECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTACK_COMPLEXITY_FIELD_NUMBER
public static final int ATTACK_COMPLEXITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIVILEGES_REQUIRED_FIELD_NUMBER
public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_INTERACTION_FIELD_NUMBER
public static final int USER_INTERACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIDENTIALITY_IMPACT_FIELD_NUMBER
public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTEGRITY_IMPACT_FIELD_NUMBER
public static final int INTEGRITY_IMPACT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABILITY_IMPACT_FIELD_NUMBER
public static final int AVAILABILITY_IMPACT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getBaseScore
public float getBaseScore()
The base score is a function of the base metric scores.
float base_score = 1;- Specified by:
getBaseScorein interfaceCVSSv3OrBuilder- Returns:
- The baseScore.
-
getExploitabilityScore
public float getExploitabilityScore()
float exploitability_score = 2;- Specified by:
getExploitabilityScorein interfaceCVSSv3OrBuilder- Returns:
- The exploitabilityScore.
-
getImpactScore
public float getImpactScore()
float impact_score = 3;- Specified by:
getImpactScorein interfaceCVSSv3OrBuilder- Returns:
- The impactScore.
-
getAttackVectorValue
public int getAttackVectorValue()
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
.grafeas.v1beta1.vulnerability.CVSSv3.AttackVector attack_vector = 5;- Specified by:
getAttackVectorValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for attackVector.
-
getAttackVector
public CVSSv3.AttackVector getAttackVector()
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
.grafeas.v1beta1.vulnerability.CVSSv3.AttackVector attack_vector = 5;- Specified by:
getAttackVectorin interfaceCVSSv3OrBuilder- Returns:
- The attackVector.
-
getAttackComplexityValue
public int getAttackComplexityValue()
.grafeas.v1beta1.vulnerability.CVSSv3.AttackComplexity attack_complexity = 6;- Specified by:
getAttackComplexityValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for attackComplexity.
-
getAttackComplexity
public CVSSv3.AttackComplexity getAttackComplexity()
.grafeas.v1beta1.vulnerability.CVSSv3.AttackComplexity attack_complexity = 6;- Specified by:
getAttackComplexityin interfaceCVSSv3OrBuilder- Returns:
- The attackComplexity.
-
getPrivilegesRequiredValue
public int getPrivilegesRequiredValue()
.grafeas.v1beta1.vulnerability.CVSSv3.PrivilegesRequired privileges_required = 7;- Specified by:
getPrivilegesRequiredValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for privilegesRequired.
-
getPrivilegesRequired
public CVSSv3.PrivilegesRequired getPrivilegesRequired()
.grafeas.v1beta1.vulnerability.CVSSv3.PrivilegesRequired privileges_required = 7;- Specified by:
getPrivilegesRequiredin interfaceCVSSv3OrBuilder- Returns:
- The privilegesRequired.
-
getUserInteractionValue
public int getUserInteractionValue()
.grafeas.v1beta1.vulnerability.CVSSv3.UserInteraction user_interaction = 8;- Specified by:
getUserInteractionValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for userInteraction.
-
getUserInteraction
public CVSSv3.UserInteraction getUserInteraction()
.grafeas.v1beta1.vulnerability.CVSSv3.UserInteraction user_interaction = 8;- Specified by:
getUserInteractionin interfaceCVSSv3OrBuilder- Returns:
- The userInteraction.
-
getScopeValue
public int getScopeValue()
.grafeas.v1beta1.vulnerability.CVSSv3.Scope scope = 9;- Specified by:
getScopeValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
getScope
public CVSSv3.Scope getScope()
.grafeas.v1beta1.vulnerability.CVSSv3.Scope scope = 9;- Specified by:
getScopein interfaceCVSSv3OrBuilder- Returns:
- The scope.
-
getConfidentialityImpactValue
public int getConfidentialityImpactValue()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact confidentiality_impact = 10;- Specified by:
getConfidentialityImpactValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for confidentialityImpact.
-
getConfidentialityImpact
public CVSSv3.Impact getConfidentialityImpact()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact confidentiality_impact = 10;- Specified by:
getConfidentialityImpactin interfaceCVSSv3OrBuilder- Returns:
- The confidentialityImpact.
-
getIntegrityImpactValue
public int getIntegrityImpactValue()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact integrity_impact = 11;- Specified by:
getIntegrityImpactValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for integrityImpact.
-
getIntegrityImpact
public CVSSv3.Impact getIntegrityImpact()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact integrity_impact = 11;- Specified by:
getIntegrityImpactin interfaceCVSSv3OrBuilder- Returns:
- The integrityImpact.
-
getAvailabilityImpactValue
public int getAvailabilityImpactValue()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact availability_impact = 12;- Specified by:
getAvailabilityImpactValuein interfaceCVSSv3OrBuilder- Returns:
- The enum numeric value on the wire for availabilityImpact.
-
getAvailabilityImpact
public CVSSv3.Impact getAvailabilityImpact()
.grafeas.v1beta1.vulnerability.CVSSv3.Impact availability_impact = 12;- Specified by:
getAvailabilityImpactin interfaceCVSSv3OrBuilder- Returns:
- The availabilityImpact.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CVSSv3 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CVSSv3 parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CVSSv3 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CVSSv3 parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CVSSv3 parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CVSSv3 parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CVSSv3 parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CVSSv3.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CVSSv3.Builder newBuilder()
-
newBuilder
public static CVSSv3.Builder newBuilder(CVSSv3 prototype)
-
toBuilder
public CVSSv3.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CVSSv3.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CVSSv3 getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CVSSv3> parser()
-
getParserForType
public com.google.protobuf.Parser<CVSSv3> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CVSSv3 getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-