Class VulnerabilityLocation (2.4.10)

public final class VulnerabilityLocation extends GeneratedMessageV3 implements VulnerabilityLocationOrBuilder

The location of the vulnerability.

Protobuf type grafeas.v1beta1.vulnerability.VulnerabilityLocation

Static Fields

CPE_URI_FIELD_NUMBER

public static final int CPE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_FIELD_NUMBER

public static final int PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VulnerabilityLocation getDefaultInstance()
Returns
TypeDescription
VulnerabilityLocation

getDescriptor()

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

newBuilder()

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

newBuilder(VulnerabilityLocation prototype)

public static VulnerabilityLocation.Builder newBuilder(VulnerabilityLocation prototype)
Parameter
NameDescription
prototypeVulnerabilityLocation
Returns
TypeDescription
VulnerabilityLocation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCpeUri()

public String getCpeUri()

Required. The CPE URI in cpe format format. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Returns
TypeDescription
String

The cpeUri.

getCpeUriBytes()

public ByteString getCpeUriBytes()

Required. The CPE URI in cpe format format. Examples include distro or storage location for vulnerable jar.

string cpe_uri = 1;

Returns
TypeDescription
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public VulnerabilityLocation getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityLocation

getPackage()

public String getPackage()

Required. The package being described.

string package = 2;

Returns
TypeDescription
String

The package.

getPackageBytes()

public ByteString getPackageBytes()

Required. The package being described.

string package = 2;

Returns
TypeDescription
ByteString

The bytes for package.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVersion()

public Version getVersion()

Required. The version of the package being described.

.grafeas.v1beta1.package.Version version = 3;

Returns
TypeDescription
Version

The version.

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

Required. The version of the package being described.

.grafeas.v1beta1.package.Version version = 3;

Returns
TypeDescription
VersionOrBuilder

hasVersion()

public boolean hasVersion()

Required. The version of the package being described.

.grafeas.v1beta1.package.Version version = 3;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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