Class Vulnerability (2.47.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
TypeDescription
int

FIXED_PACKAGE_FIELD_NUMBER

public static final int FIXED_PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

OFFENDING_PACKAGE_FIELD_NUMBER

public static final int OFFENDING_PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_BULLETIN_FIELD_NUMBER

public static final int SECURITY_BULLETIN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Vulnerability getDefaultInstance()
Returns
TypeDescription
Vulnerability

getDescriptor()

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

newBuilder()

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

newBuilder(Vulnerability prototype)

public static Vulnerability.Builder newBuilder(Vulnerability prototype)
Parameter
NameDescription
prototypeVulnerability
Returns
TypeDescription
Vulnerability.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CveOrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
TypeDescription
Vulnerability

getFixedPackage()

public Package getFixedPackage()

The fixed package is relevant to the finding.

.google.cloud.securitycenter.v2.Package fixed_package = 3;

Returns
TypeDescription
Package

The fixedPackage.

getFixedPackageOrBuilder()

public PackageOrBuilder getFixedPackageOrBuilder()

The fixed package is relevant to the finding.

.google.cloud.securitycenter.v2.Package fixed_package = 3;

Returns
TypeDescription
PackageOrBuilder

getOffendingPackage()

public Package getOffendingPackage()

The offending package is relevant to the finding.

.google.cloud.securitycenter.v2.Package offending_package = 2;

Returns
TypeDescription
Package

The offendingPackage.

getOffendingPackageOrBuilder()

public PackageOrBuilder getOffendingPackageOrBuilder()

The offending package is relevant to the finding.

.google.cloud.securitycenter.v2.Package offending_package = 2;

Returns
TypeDescription
PackageOrBuilder

getParserForType()

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

getSecurityBulletin()

public SecurityBulletin getSecurityBulletin()

The security bulletin is relevant to this finding.

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

Returns
TypeDescription
SecurityBulletin

The securityBulletin.

getSecurityBulletinOrBuilder()

public SecurityBulletinOrBuilder getSecurityBulletinOrBuilder()

The security bulletin is relevant to this finding.

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

Returns
TypeDescription
SecurityBulletinOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the securityBulletin field is set.

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 Vulnerability.Builder newBuilderForType()
Returns
TypeDescription
Vulnerability.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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