Class Cve (2.16.0)

public final class Cve extends GeneratedMessageV3 implements CveOrBuilder

CVE stands for Common Vulnerabilities and Exposures. More information: https://cve.mitre.org

Protobuf type google.cloud.securitycenter.v1.Cve

Implements

CveOrBuilder

Static Fields

CVSSV3_FIELD_NUMBER

public static final int CVSSV3_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

REFERENCES_FIELD_NUMBER

public static final int REFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER

public static final int UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Cve getDefaultInstance()
Returns
TypeDescription
Cve

getDescriptor()

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

newBuilder()

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

newBuilder(Cve prototype)

public static Cve.Builder newBuilder(Cve prototype)
Parameter
NameDescription
prototypeCve
Returns
TypeDescription
Cve.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCvssv3()

public Cvssv3 getCvssv3()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
Cvssv3

The cvssv3.

getCvssv3OrBuilder()

public Cvssv3OrBuilder getCvssv3OrBuilder()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
Cvssv3OrBuilder

getDefaultInstanceForType()

public Cve getDefaultInstanceForType()
Returns
TypeDescription
Cve

getId()

public String getId()

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The unique identifier for the vulnerability. e.g. CVE-2021-34527

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

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

getReferences(int index)

public Reference getReferences(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Reference

getReferencesCount()

public int getReferencesCount()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v1.Reference references = 2;

Returns
TypeDescription
int

getReferencesList()

public List<Reference> getReferencesList()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v1.Reference references = 2;

Returns
TypeDescription
List<Reference>

getReferencesOrBuilder(int index)

public ReferenceOrBuilder getReferencesOrBuilder(int index)

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v1.Reference references = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends ReferenceOrBuilder> getReferencesOrBuilderList()

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527

repeated .google.cloud.securitycenter.v1.Reference references = 2;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v1.ReferenceOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpstreamFixAvailable()

public boolean getUpstreamFixAvailable()

Whether upstream fix is available for the CVE.

bool upstream_fix_available = 4;

Returns
TypeDescription
boolean

The upstreamFixAvailable.

hasCvssv3()

public boolean hasCvssv3()

Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document

.google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;

Returns
TypeDescription
boolean

Whether the cvssv3 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 Cve.Builder newBuilderForType()
Returns
TypeDescription
Cve.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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