Class Vulnerability (2.84.0)
public final class Vulnerability extends GeneratedMessageV3 implements VulnerabilityOrBuilder
Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
Protobuf type google.cloud.securitycenter.v2.Vulnerability
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CVE_FIELD_NUMBER
public static final int CVE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CWES_FIELD_NUMBER
public static final int CWES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
FIXED_PACKAGE_FIELD_NUMBER
public static final int FIXED_PACKAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
OFFENDING_PACKAGE_FIELD_NUMBER
public static final int OFFENDING_PACKAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROVIDER_RISK_SCORE_FIELD_NUMBER
public static final int PROVIDER_RISK_SCORE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REACHABLE_FIELD_NUMBER
public static final int REACHABLE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SECURITY_BULLETIN_FIELD_NUMBER
public static final int SECURITY_BULLETIN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Vulnerability getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Vulnerability.Builder newBuilder()
newBuilder(Vulnerability prototype)
public static Vulnerability.Builder newBuilder(Vulnerability prototype)
public static Vulnerability parseDelimitedFrom(InputStream input)
public static Vulnerability parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Vulnerability parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Vulnerability parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(CodedInputStream input)
public static Vulnerability parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(InputStream input)
public static Vulnerability parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Vulnerability parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Vulnerability parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Vulnerability> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCve()
Returns |
Type |
Description |
Cve |
The cve.
|
getCveOrBuilder()
public CveOrBuilder getCveOrBuilder()
getCwes(int index)
public Cwe getCwes(int index)
Represents one or more Common Weakness Enumeration (CWE) information on
this vulnerability.
repeated .google.cloud.securitycenter.v2.Cwe cwes = 7;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Cwe |
|
getCwesCount()
public int getCwesCount()
Represents one or more Common Weakness Enumeration (CWE) information on
this vulnerability.
repeated .google.cloud.securitycenter.v2.Cwe cwes = 7;
Returns |
Type |
Description |
int |
|
getCwesList()
public List<Cwe> getCwesList()
Represents one or more Common Weakness Enumeration (CWE) information on
this vulnerability.
repeated .google.cloud.securitycenter.v2.Cwe cwes = 7;
getCwesOrBuilder(int index)
public CweOrBuilder getCwesOrBuilder(int index)
Represents one or more Common Weakness Enumeration (CWE) information on
this vulnerability.
repeated .google.cloud.securitycenter.v2.Cwe cwes = 7;
Parameter |
Name |
Description |
index |
int
|
getCwesOrBuilderList()
public List<? extends CweOrBuilder> getCwesOrBuilderList()
Represents one or more Common Weakness Enumeration (CWE) information on
this vulnerability.
repeated .google.cloud.securitycenter.v2.Cwe cwes = 7;
Returns |
Type |
Description |
List<? extends com.google.cloud.securitycenter.v2.CweOrBuilder> |
|
getDefaultInstanceForType()
public Vulnerability getDefaultInstanceForType()
getFixedPackage()
public Package getFixedPackage()
The fixed package is relevant to the finding.
.google.cloud.securitycenter.v2.Package fixed_package = 3;
Returns |
Type |
Description |
Package |
The fixedPackage.
|
getFixedPackageOrBuilder()
public PackageOrBuilder getFixedPackageOrBuilder()
The fixed package is relevant to the finding.
.google.cloud.securitycenter.v2.Package fixed_package = 3;
getOffendingPackage()
public Package getOffendingPackage()
The offending package is relevant to the finding.
.google.cloud.securitycenter.v2.Package offending_package = 2;
Returns |
Type |
Description |
Package |
The offendingPackage.
|
getOffendingPackageOrBuilder()
public PackageOrBuilder getOffendingPackageOrBuilder()
The offending package is relevant to the finding.
.google.cloud.securitycenter.v2.Package offending_package = 2;
getParserForType()
public Parser<Vulnerability> getParserForType()
Overrides
getProviderRiskScore()
public long getProviderRiskScore()
Provider provided risk_score based on multiple factors. The higher the risk
score, the more risky the vulnerability is.
int64 provider_risk_score = 5;
Returns |
Type |
Description |
long |
The providerRiskScore.
|
getReachable()
public boolean getReachable()
Represents whether the vulnerability is reachable (detected via static
analysis)
bool reachable = 6;
Returns |
Type |
Description |
boolean |
The reachable.
|
getSecurityBulletin()
public SecurityBulletin getSecurityBulletin()
The security bulletin is relevant to this finding.
.google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4;
getSecurityBulletinOrBuilder()
public SecurityBulletinOrBuilder getSecurityBulletinOrBuilder()
The security bulletin is relevant to this finding.
.google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasCve()
Returns |
Type |
Description |
boolean |
Whether the cve field is set.
|
hasFixedPackage()
public boolean hasFixedPackage()
The fixed package is relevant to the finding.
.google.cloud.securitycenter.v2.Package fixed_package = 3;
Returns |
Type |
Description |
boolean |
Whether the fixedPackage field is set.
|
hasOffendingPackage()
public boolean hasOffendingPackage()
The offending package is relevant to the finding.
.google.cloud.securitycenter.v2.Package offending_package = 2;
Returns |
Type |
Description |
boolean |
Whether the offendingPackage field is set.
|
hasSecurityBulletin()
public boolean hasSecurityBulletin()
The security bulletin is relevant to this finding.
.google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4;
Returns |
Type |
Description |
boolean |
Whether the securityBulletin field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Vulnerability.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Vulnerability.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Vulnerability.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]