Class VulnerabilityOccurrence.PackageIssue.Builder (2.3.0)

public static final class VulnerabilityOccurrence.PackageIssue.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrence.PackageIssue.Builder> implements VulnerabilityOccurrence.PackageIssueOrBuilder

A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).

Protobuf type grafeas.v1.VulnerabilityOccurrence.PackageIssue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.PackageIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

build()

public VulnerabilityOccurrence.PackageIssue build()
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue

buildPartial()

public VulnerabilityOccurrence.PackageIssue buildPartial()
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue

clear()

public VulnerabilityOccurrence.PackageIssue.Builder clear()
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

clearAffectedCpeUri()

public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedCpeUri()

Required. The CPE URI this vulnerability was found in.

string affected_cpe_uri = 1;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearAffectedPackage()

public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedPackage()

Required. The package this vulnerability was found in.

string affected_package = 2;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearAffectedVersion()

public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedVersion()

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

clearEffectiveSeverity()

public VulnerabilityOccurrence.PackageIssue.Builder clearEffectiveSeverity()

The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.

.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityOccurrence.PackageIssue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

clearFixAvailable()

public VulnerabilityOccurrence.PackageIssue.Builder clearFixAvailable()

Output only. Whether a fix is available for this package.

bool fix_available = 7;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearFixedCpeUri()

public VulnerabilityOccurrence.PackageIssue.Builder clearFixedCpeUri()

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

string fixed_cpe_uri = 4;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearFixedPackage()

public VulnerabilityOccurrence.PackageIssue.Builder clearFixedPackage()

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

string fixed_package = 5;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clearFixedVersion()

public VulnerabilityOccurrence.PackageIssue.Builder clearFixedVersion()

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityOccurrence.PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

clearPackageType()

public VulnerabilityOccurrence.PackageIssue.Builder clearPackageType()

The type of package (e.g. OS, MAVEN, GO).

string package_type = 8;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

clone()

public VulnerabilityOccurrence.PackageIssue.Builder clone()
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

getAffectedCpeUri()

public String getAffectedCpeUri()

Required. The CPE URI this vulnerability was found in.

string affected_cpe_uri = 1;

Returns
TypeDescription
String

The affectedCpeUri.

getAffectedCpeUriBytes()

public ByteString getAffectedCpeUriBytes()

Required. The CPE URI this vulnerability was found in.

string affected_cpe_uri = 1;

Returns
TypeDescription
ByteString

The bytes for affectedCpeUri.

getAffectedPackage()

public String getAffectedPackage()

Required. The package this vulnerability was found in.

string affected_package = 2;

Returns
TypeDescription
String

The affectedPackage.

getAffectedPackageBytes()

public ByteString getAffectedPackageBytes()

Required. The package this vulnerability was found in.

string affected_package = 2;

Returns
TypeDescription
ByteString

The bytes for affectedPackage.

getAffectedVersion()

public Version getAffectedVersion()

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Returns
TypeDescription
Version

The affectedVersion.

getAffectedVersionBuilder()

public Version.Builder getAffectedVersionBuilder()

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Returns
TypeDescription
Version.Builder

getAffectedVersionOrBuilder()

public VersionOrBuilder getAffectedVersionOrBuilder()

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Returns
TypeDescription
VersionOrBuilder

getDefaultInstanceForType()

public VulnerabilityOccurrence.PackageIssue getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEffectiveSeverity()

public Severity getEffectiveSeverity()

The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.

.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Severity

The effectiveSeverity.

getEffectiveSeverityValue()

public int getEffectiveSeverityValue()

The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.

.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for effectiveSeverity.

getFixAvailable()

public boolean getFixAvailable()

Output only. Whether a fix is available for this package.

bool fix_available = 7;

Returns
TypeDescription
boolean

The fixAvailable.

getFixedCpeUri()

public String getFixedCpeUri()

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

string fixed_cpe_uri = 4;

Returns
TypeDescription
String

The fixedCpeUri.

getFixedCpeUriBytes()

public ByteString getFixedCpeUriBytes()

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

string fixed_cpe_uri = 4;

Returns
TypeDescription
ByteString

The bytes for fixedCpeUri.

getFixedPackage()

public String getFixedPackage()

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

string fixed_package = 5;

Returns
TypeDescription
String

The fixedPackage.

getFixedPackageBytes()

public ByteString getFixedPackageBytes()

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

string fixed_package = 5;

Returns
TypeDescription
ByteString

The bytes for fixedPackage.

getFixedVersion()

public Version getFixedVersion()

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Returns
TypeDescription
Version

The fixedVersion.

getFixedVersionBuilder()

public Version.Builder getFixedVersionBuilder()

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Returns
TypeDescription
Version.Builder

getFixedVersionOrBuilder()

public VersionOrBuilder getFixedVersionOrBuilder()

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Returns
TypeDescription
VersionOrBuilder

getPackageType()

public String getPackageType()

The type of package (e.g. OS, MAVEN, GO).

string package_type = 8;

Returns
TypeDescription
String

The packageType.

getPackageTypeBytes()

public ByteString getPackageTypeBytes()

The type of package (e.g. OS, MAVEN, GO).

string package_type = 8;

Returns
TypeDescription
ByteString

The bytes for packageType.

hasAffectedVersion()

public boolean hasAffectedVersion()

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Returns
TypeDescription
boolean

Whether the affectedVersion field is set.

hasFixedVersion()

public boolean hasFixedVersion()

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Returns
TypeDescription
boolean

Whether the fixedVersion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAffectedVersion(Version value)

public VulnerabilityOccurrence.PackageIssue.Builder mergeAffectedVersion(Version value)

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

mergeFixedVersion(Version value)

public VulnerabilityOccurrence.PackageIssue.Builder mergeFixedVersion(Version value)

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

mergeFrom(VulnerabilityOccurrence.PackageIssue other)

public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(VulnerabilityOccurrence.PackageIssue other)
Parameter
NameDescription
otherVulnerabilityOccurrence.PackageIssue
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

setAffectedCpeUri(String value)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedCpeUri(String value)

Required. The CPE URI this vulnerability was found in.

string affected_cpe_uri = 1;

Parameter
NameDescription
valueString

The affectedCpeUri to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setAffectedCpeUriBytes(ByteString value)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedCpeUriBytes(ByteString value)

Required. The CPE URI this vulnerability was found in.

string affected_cpe_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for affectedCpeUri to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setAffectedPackage(String value)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedPackage(String value)

Required. The package this vulnerability was found in.

string affected_package = 2;

Parameter
NameDescription
valueString

The affectedPackage to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setAffectedPackageBytes(ByteString value)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedPackageBytes(ByteString value)

Required. The package this vulnerability was found in.

string affected_package = 2;

Parameter
NameDescription
valueByteString

The bytes for affectedPackage to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setAffectedVersion(Version value)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedVersion(Version value)

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

setAffectedVersion(Version.Builder builderForValue)

public VulnerabilityOccurrence.PackageIssue.Builder setAffectedVersion(Version.Builder builderForValue)

Required. The version of the package that is installed on the resource affected by this vulnerability.

.grafeas.v1.Version affected_version = 3;

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

setEffectiveSeverity(Severity value)

public VulnerabilityOccurrence.PackageIssue.Builder setEffectiveSeverity(Severity value)

The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.

.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSeverity

The effectiveSeverity to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setEffectiveSeverityValue(int value)

public VulnerabilityOccurrence.PackageIssue.Builder setEffectiveSeverityValue(int value)

The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.

.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for effectiveSeverity to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityOccurrence.PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

setFixAvailable(boolean value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixAvailable(boolean value)

Output only. Whether a fix is available for this package.

bool fix_available = 7;

Parameter
NameDescription
valueboolean

The fixAvailable to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setFixedCpeUri(String value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedCpeUri(String value)

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

string fixed_cpe_uri = 4;

Parameter
NameDescription
valueString

The fixedCpeUri to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setFixedCpeUriBytes(ByteString value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedCpeUriBytes(ByteString value)

The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.

string fixed_cpe_uri = 4;

Parameter
NameDescription
valueByteString

The bytes for fixedCpeUri to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setFixedPackage(String value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedPackage(String value)

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

string fixed_package = 5;

Parameter
NameDescription
valueString

The fixedPackage to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setFixedPackageBytes(ByteString value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedPackageBytes(ByteString value)

The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.

string fixed_package = 5;

Parameter
NameDescription
valueByteString

The bytes for fixedPackage to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setFixedVersion(Version value)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedVersion(Version value)

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

setFixedVersion(Version.Builder builderForValue)

public VulnerabilityOccurrence.PackageIssue.Builder setFixedVersion(Version.Builder builderForValue)

Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.

.grafeas.v1.Version fixed_version = 6;

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

setPackageType(String value)

public VulnerabilityOccurrence.PackageIssue.Builder setPackageType(String value)

The type of package (e.g. OS, MAVEN, GO).

string package_type = 8;

Parameter
NameDescription
valueString

The packageType to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setPackageTypeBytes(ByteString value)

public VulnerabilityOccurrence.PackageIssue.Builder setPackageTypeBytes(ByteString value)

The type of package (e.g. OS, MAVEN, GO).

string package_type = 8;

Parameter
NameDescription
valueByteString

The bytes for packageType to set.

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VulnerabilityOccurrence.PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrence.PackageIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder
Overrides