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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PackageIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PackageIssue build()
Returns
buildPartial()
public PackageIssue buildPartial()
Returns
clear()
public PackageIssue.Builder clear()
Returns
Overrides
clearAffectedLocation()
public PackageIssue.Builder clearAffectedLocation()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public PackageIssue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFixedLocation()
public PackageIssue.Builder clearFixedLocation()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public PackageIssue.Builder clone()
Returns
Overrides
getAffectedLocation()
public VulnerabilityLocation getAffectedLocation()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Returns
getAffectedLocationBuilder()
public VulnerabilityLocation.Builder getAffectedLocationBuilder()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Returns
getAffectedLocationOrBuilder()
public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Returns
getDefaultInstanceForType()
public PackageIssue getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFixedLocation()
public VulnerabilityLocation getFixedLocation()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
Returns
getFixedLocationBuilder()
public VulnerabilityLocation.Builder getFixedLocationBuilder()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
Returns
getFixedLocationOrBuilder()
public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAffectedLocation(VulnerabilityLocation value)
public PackageIssue.Builder mergeAffectedLocation(VulnerabilityLocation value)
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Parameter
Returns
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
Returns
public PackageIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PackageIssue.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(PackageIssue other)
public PackageIssue.Builder mergeFrom(PackageIssue other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAffectedLocation(VulnerabilityLocation value)
public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation value)
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final PackageIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides