Class Vulnerability (2.62.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

Static Fields

CVE_FIELD_NUMBER

public static final int CVE_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

SECURITY_BULLETIN_FIELD_NUMBER

public static final int SECURITY_BULLETIN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Vulnerability getDefaultInstance()
Returns
Type Description
Vulnerability

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Vulnerability.Builder newBuilder()
Returns
Type Description
Vulnerability.Builder

newBuilder(Vulnerability prototype)

public static Vulnerability.Builder newBuilder(Vulnerability prototype)
Parameter
Name Description
prototype Vulnerability
Returns
Type Description
Vulnerability.Builder

parseDelimitedFrom(InputStream input)

public static Vulnerability parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Vulnerability parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Vulnerability parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Vulnerability parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Vulnerability parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Vulnerability parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Vulnerability parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vulnerability
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Vulnerability> parser()
Returns
Type Description
Parser<Vulnerability>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCve()

public Cve getCve()

CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)

.google.cloud.securitycenter.v2.Cve cve = 1;

Returns
Type Description
Cve

The cve.

getCveOrBuilder()

public CveOrBuilder getCveOrBuilder()

CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)

.google.cloud.securitycenter.v2.Cve cve = 1;

Returns
Type Description
CveOrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
Type Description
Vulnerability

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;

Returns
Type Description
PackageOrBuilder

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;

Returns
Type Description
PackageOrBuilder

getParserForType()

public Parser<Vulnerability> getParserForType()
Returns
Type Description
Parser<Vulnerability>
Overrides

getSecurityBulletin()

public SecurityBulletin getSecurityBulletin()

The security bulletin is relevant to this finding.

.google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4;

Returns
Type Description
SecurityBulletin

The securityBulletin.

getSecurityBulletinOrBuilder()

public SecurityBulletinOrBuilder getSecurityBulletinOrBuilder()

The security bulletin is relevant to this finding.

.google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4;

Returns
Type Description
SecurityBulletinOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCve()

public boolean hasCve()

CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)

.google.cloud.securitycenter.v2.Cve cve = 1;

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Vulnerability.Builder newBuilderForType()
Returns
Type Description
Vulnerability.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Vulnerability.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Vulnerability.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Vulnerability.Builder toBuilder()
Returns
Type Description
Vulnerability.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException