public static final class PackageIssue.Builder extends GeneratedMessage.Builder<PackageIssue.Builder> implements PackageIssueOrBuilderThis message wraps a location affected by a vulnerability and its associated fix (if one is available).
Protobuf type grafeas.v1beta1.vulnerability.PackageIssue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PackageIssue.BuilderImplements
PackageIssueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearAffectedLocation()
public PackageIssue.Builder clearAffectedLocation()Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
| Returns | |
|---|---|
| Type | Description |
PackageIssue.Builder |
|
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 |
|
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PackageIssue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PackageIssue.Builder |
|
mergeFrom(PackageIssue other)
public PackageIssue.Builder mergeFrom(PackageIssue other)| Parameter | |
|---|---|
| Name | Description |
other |
PackageIssue |
| Returns | |
|---|---|
| Type | Description |
PackageIssue.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for severityName to set. |
| Returns | |
|---|---|
| Type | Description |
PackageIssue.Builder |
This builder for chaining. |