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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PackageIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PackageIssue build()
buildPartial()
public PackageIssue buildPartial()
clear()
public PackageIssue.Builder clear()
Overrides
clearAffectedLocation()
public PackageIssue.Builder clearAffectedLocation()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
clearField(Descriptors.FieldDescriptor field)
public PackageIssue.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFixedLocation()
public PackageIssue.Builder clearFixedLocation()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public PackageIssue.Builder clone()
Overrides
getAffectedLocation()
public VulnerabilityLocation getAffectedLocation()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
getAffectedLocationBuilder()
public VulnerabilityLocation.Builder getAffectedLocationBuilder()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
getAffectedLocationOrBuilder()
public VulnerabilityLocationOrBuilder getAffectedLocationOrBuilder()
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
getDefaultInstanceForType()
public PackageIssue getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFixedLocation()
public VulnerabilityLocation getFixedLocation()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
getFixedLocationBuilder()
public VulnerabilityLocation.Builder getFixedLocationBuilder()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
getFixedLocationOrBuilder()
public VulnerabilityLocationOrBuilder getFixedLocationOrBuilder()
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAffectedLocation(VulnerabilityLocation value)
public PackageIssue.Builder mergeAffectedLocation(VulnerabilityLocation value)
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
mergeFixedLocation(VulnerabilityLocation value)
public PackageIssue.Builder mergeFixedLocation(VulnerabilityLocation value)
The location of the available fix for vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation fixed_location = 2;
public PackageIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PackageIssue.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(PackageIssue other)
public PackageIssue.Builder mergeFrom(PackageIssue other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAffectedLocation(VulnerabilityLocation value)
public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation value)
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
setAffectedLocation(VulnerabilityLocation.Builder builderForValue)
public PackageIssue.Builder setAffectedLocation(VulnerabilityLocation.Builder builderForValue)
Required. The location of the vulnerability.
.grafeas.v1beta1.vulnerability.VulnerabilityLocation affected_location = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final PackageIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides