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

Static Fields

CVE_FIELD_NUMBER

public static final int CVE_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.v1.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.v1.Cve cve = 1;

Returns
TypeDescription
CveOrBuilder

getDefaultInstanceForType()

public Vulnerability getDefaultInstanceForType()
Returns
TypeDescription
Vulnerability

getParserForType()

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

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.v1.Cve cve = 1;

Returns
TypeDescription
boolean

Whether the cve 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