Class VulnerabilityOccurrence.PackageIssue.Builder (2.31.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

addAllFileLocation(Iterable<? extends FileLocation> values)

public VulnerabilityOccurrence.PackageIssue.Builder addAllFileLocation(Iterable<? extends FileLocation> values)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.FileLocation>
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

addFileLocation(int index, FileLocation value)

public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(int index, FileLocation value)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameters
NameDescription
indexint
valueFileLocation
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

addFileLocation(int index, FileLocation.Builder builderForValue)

public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(int index, FileLocation.Builder builderForValue)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameters
NameDescription
indexint
builderForValueFileLocation.Builder
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

addFileLocation(FileLocation value)

public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(FileLocation value)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
valueFileLocation
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

addFileLocation(FileLocation.Builder builderForValue)

public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(FileLocation.Builder builderForValue)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

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

addFileLocationBuilder()

public FileLocation.Builder addFileLocationBuilder()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
FileLocation.Builder

addFileLocationBuilder(int index)

public FileLocation.Builder addFileLocationBuilder(int index)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileLocation.Builder

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

clearFileLocation()

public VulnerabilityOccurrence.PackageIssue.Builder clearFileLocation()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

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.

getFileLocation(int index)

public FileLocation getFileLocation(int index)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileLocation

getFileLocationBuilder(int index)

public FileLocation.Builder getFileLocationBuilder(int index)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileLocation.Builder

getFileLocationBuilderList()

public List<FileLocation.Builder> getFileLocationBuilderList()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
List<Builder>

getFileLocationCount()

public int getFileLocationCount()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
int

getFileLocationList()

public List<FileLocation> getFileLocationList()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
List<FileLocation>

getFileLocationOrBuilder(int index)

public FileLocationOrBuilder getFileLocationOrBuilder(int index)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileLocationOrBuilder

getFileLocationOrBuilderList()

public List<? extends FileLocationOrBuilder> getFileLocationOrBuilderList()

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Returns
TypeDescription
List<? extends io.grafeas.v1.FileLocationOrBuilder>

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

removeFileLocation(int index)

public VulnerabilityOccurrence.PackageIssue.Builder removeFileLocation(int index)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

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

setFileLocation(int index, FileLocation value)

public VulnerabilityOccurrence.PackageIssue.Builder setFileLocation(int index, FileLocation value)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameters
NameDescription
indexint
valueFileLocation
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

setFileLocation(int index, FileLocation.Builder builderForValue)

public VulnerabilityOccurrence.PackageIssue.Builder setFileLocation(int index, FileLocation.Builder builderForValue)

The location at which this package was found.

repeated .grafeas.v1.FileLocation file_location = 10;

Parameters
NameDescription
indexint
builderForValueFileLocation.Builder
Returns
TypeDescription
VulnerabilityOccurrence.PackageIssue.Builder

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