Class PackageIssue.Builder (2.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PackageIssue build()
Returns
TypeDescription
PackageIssue

buildPartial()

public PackageIssue buildPartial()
Returns
TypeDescription
PackageIssue

clear()

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

clearAffectedLocation()

public PackageIssue.Builder clearAffectedLocation()

Required. The location of the vulnerability.

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

Returns
TypeDescription
PackageIssue.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFixedLocation()

public PackageIssue.Builder clearFixedLocation()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
PackageIssue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PackageIssue.Builder

This builder for chaining.

clone()

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

getAffectedLocation()

public VulnerabilityLocation getAffectedLocation()

Required. The location of the vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation

The affectedLocation.

getAffectedLocationBuilder()

public VulnerabilityLocation.Builder getAffectedLocationBuilder()

Required. The location of the vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation.Builder

getAffectedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()

Required. The location of the vulnerability.

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

Returns
TypeDescription
VulnerabilityLocationOrBuilder

getDefaultInstanceForType()

public PackageIssue getDefaultInstanceForType()
Returns
TypeDescription
PackageIssue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFixedLocation()

public VulnerabilityLocation getFixedLocation()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation

The fixedLocation.

getFixedLocationBuilder()

public VulnerabilityLocation.Builder getFixedLocationBuilder()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
VulnerabilityLocation.Builder

getFixedLocationOrBuilder()

public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()

The location of the available fix for vulnerability.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for severityName.

hasAffectedLocation()

public boolean hasAffectedLocation()

Required. The location of the vulnerability.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the fixedLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueVulnerabilityLocation
Returns
TypeDescription
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
NameDescription
valueVulnerabilityLocation
Returns
TypeDescription
PackageIssue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(PackageIssue other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVulnerabilityLocation
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityLocation.Builder
Returns
TypeDescription
PackageIssue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueVulnerabilityLocation
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityLocation.Builder
Returns
TypeDescription
PackageIssue.Builder

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

public PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The severityName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for severityName to set.

Returns
TypeDescription
PackageIssue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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