Class PackageIssue.Builder (2.55.0)

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

This message wraps a location affected by a vulnerability and its associated fix (if one is available).

Protobuf type grafeas.v1beta1.vulnerability.PackageIssue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PackageIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackageIssue.Builder
Overrides

build()

public PackageIssue build()
Returns
Type Description
PackageIssue

buildPartial()

public PackageIssue buildPartial()
Returns
Type Description
PackageIssue

clear()

public PackageIssue.Builder clear()
Returns
Type Description
PackageIssue.Builder
Overrides

clearAffectedLocation()

public PackageIssue.Builder clearAffectedLocation()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
PackageIssue.Builder

clearField(Descriptors.FieldDescriptor field)

public PackageIssue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PackageIssue.Builder
Overrides

clearFixedLocation()

public PackageIssue.Builder clearFixedLocation()

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Returns
Type Description
PackageIssue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PackageIssue.Builder
Overrides

clearSeverityName()

public PackageIssue.Builder clearSeverityName()

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Returns
Type Description
PackageIssue.Builder

This builder for chaining.

clone()

public PackageIssue.Builder clone()
Returns
Type Description
PackageIssue.Builder
Overrides

getAffectedLocation()

public VulnerabilityLocation getAffectedLocation()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
VulnerabilityLocation

The affectedLocation.

getAffectedLocationBuilder()

public VulnerabilityLocation.Builder getAffectedLocationBuilder()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
VulnerabilityLocation.Builder

getAffectedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
VulnerabilityLocationOrBuilder

getDefaultInstanceForType()

public PackageIssue getDefaultInstanceForType()
Returns
Type Description
PackageIssue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Returns
Type Description
VulnerabilityLocation

The fixedLocation.

getFixedLocationBuilder()

public VulnerabilityLocation.Builder getFixedLocationBuilder()

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Returns
Type Description
VulnerabilityLocation.Builder

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Returns
Type Description
VulnerabilityLocationOrBuilder

getSeverityName()

public String getSeverityName()

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Returns
Type Description
String

The severityName.

getSeverityNameBytes()

public ByteString getSeverityNameBytes()

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Returns
Type Description
ByteString

The bytes for severityName.

hasAffectedLocation()

public boolean hasAffectedLocation()

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Returns
Type Description
boolean

Whether the affectedLocation field is set.

hasFixedLocation()

public boolean hasFixedLocation()

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Returns
Type Description
boolean

Whether the fixedLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAffectedLocation(VulnerabilityLocation value)

public PackageIssue.Builder mergeAffectedLocation(VulnerabilityLocation value)

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Parameter
Name Description
value VulnerabilityLocation
Returns
Type Description
PackageIssue.Builder

mergeFixedLocation(VulnerabilityLocation value)

public PackageIssue.Builder mergeFixedLocation(VulnerabilityLocation value)

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Parameter
Name Description
value VulnerabilityLocation
Returns
Type Description
PackageIssue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PackageIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PackageIssue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PackageIssue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PackageIssue.Builder
Overrides

mergeFrom(PackageIssue other)

public PackageIssue.Builder mergeFrom(PackageIssue other)
Parameter
Name Description
other PackageIssue
Returns
Type Description
PackageIssue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackageIssue.Builder
Overrides

setAffectedLocation(VulnerabilityLocation value)

public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation value)

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Parameter
Name Description
value VulnerabilityLocation
Returns
Type Description
PackageIssue.Builder

setAffectedLocation(VulnerabilityLocation.Builder builderForValue)

public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation.Builder builderForValue)

Required. The location of the vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;

Parameter
Name Description
builderForValue VulnerabilityLocation.Builder
Returns
Type Description
PackageIssue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackageIssue.Builder
Overrides

setFixedLocation(VulnerabilityLocation value)

public PackageIssue.Builder setFixedLocation(VulnerabilityLocation value)

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Parameter
Name Description
value VulnerabilityLocation
Returns
Type Description
PackageIssue.Builder

setFixedLocation(VulnerabilityLocation.Builder builderForValue)

public PackageIssue.Builder setFixedLocation(VulnerabilityLocation.Builder builderForValue)

The location of the available fix for vulnerability.

.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;

Parameter
Name Description
builderForValue VulnerabilityLocation.Builder
Returns
Type Description
PackageIssue.Builder

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

public PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PackageIssue.Builder
Overrides

setSeverityName(String value)

public PackageIssue.Builder setSeverityName(String value)

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Parameter
Name Description
value String

The severityName to set.

Returns
Type Description
PackageIssue.Builder

This builder for chaining.

setSeverityNameBytes(ByteString value)

public PackageIssue.Builder setSeverityNameBytes(ByteString value)

Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.

string severity_name = 3;

Parameter
Name Description
value ByteString

The bytes for severityName to set.

Returns
Type Description
PackageIssue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PackageIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackageIssue.Builder
Overrides