- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.5
- 2.3.1
- 2.2.3
- 2.1.3
public static final class VulnerabilityOccurrence.PackageIssue.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrence.PackageIssue.Builder> implements VulnerabilityOccurrence.PackageIssueOrBuilder
A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
Protobuf type grafeas.v1.VulnerabilityOccurrence.PackageIssue
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VulnerabilityOccurrence.PackageIssue.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllFileLocation(Iterable<? extends FileLocation> values)
public VulnerabilityOccurrence.PackageIssue.Builder addAllFileLocation(Iterable<? extends FileLocation> values)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends io.grafeas.v1.FileLocation> |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addFileLocation(int index, FileLocation value)
public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(int index, FileLocation value)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameters | |
---|---|
Name | Description |
index | int |
value | FileLocation |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addFileLocation(int index, FileLocation.Builder builderForValue)
public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(int index, FileLocation.Builder builderForValue)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | FileLocation.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addFileLocation(FileLocation value)
public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(FileLocation value)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
value | FileLocation |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addFileLocation(FileLocation.Builder builderForValue)
public VulnerabilityOccurrence.PackageIssue.Builder addFileLocation(FileLocation.Builder builderForValue)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | FileLocation.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
addFileLocationBuilder()
public FileLocation.Builder addFileLocationBuilder()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
FileLocation.Builder |
addFileLocationBuilder(int index)
public FileLocation.Builder addFileLocationBuilder(int index)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileLocation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityOccurrence.PackageIssue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
build()
public VulnerabilityOccurrence.PackageIssue build()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue |
buildPartial()
public VulnerabilityOccurrence.PackageIssue buildPartial()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue |
clear()
public VulnerabilityOccurrence.PackageIssue.Builder clear()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearAffectedCpeUri()
public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedCpeUri()
Required. The CPE URI this vulnerability was found in.
string affected_cpe_uri = 1;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearAffectedPackage()
public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedPackage()
Required. The package this vulnerability was found in.
string affected_package = 2;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearAffectedVersion()
public VulnerabilityOccurrence.PackageIssue.Builder clearAffectedVersion()
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearEffectiveSeverity()
public VulnerabilityOccurrence.PackageIssue.Builder clearEffectiveSeverity()
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public VulnerabilityOccurrence.PackageIssue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearFileLocation()
public VulnerabilityOccurrence.PackageIssue.Builder clearFileLocation()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearFixAvailable()
public VulnerabilityOccurrence.PackageIssue.Builder clearFixAvailable()
Output only. Whether a fix is available for this package.
bool fix_available = 7;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearFixedCpeUri()
public VulnerabilityOccurrence.PackageIssue.Builder clearFixedCpeUri()
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string fixed_cpe_uri = 4;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearFixedPackage()
public VulnerabilityOccurrence.PackageIssue.Builder clearFixedPackage()
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string fixed_package = 5;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clearFixedVersion()
public VulnerabilityOccurrence.PackageIssue.Builder clearFixedVersion()
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public VulnerabilityOccurrence.PackageIssue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
clearPackageType()
public VulnerabilityOccurrence.PackageIssue.Builder clearPackageType()
The type of package (e.g. OS, MAVEN, GO).
string package_type = 8;
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
clone()
public VulnerabilityOccurrence.PackageIssue.Builder clone()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
getAffectedCpeUri()
public String getAffectedCpeUri()
Required. The CPE URI this vulnerability was found in.
string affected_cpe_uri = 1;
Returns | |
---|---|
Type | Description |
String | The affectedCpeUri. |
getAffectedCpeUriBytes()
public ByteString getAffectedCpeUriBytes()
Required. The CPE URI this vulnerability was found in.
string affected_cpe_uri = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for affectedCpeUri. |
getAffectedPackage()
public String getAffectedPackage()
Required. The package this vulnerability was found in.
string affected_package = 2;
Returns | |
---|---|
Type | Description |
String | The affectedPackage. |
getAffectedPackageBytes()
public ByteString getAffectedPackageBytes()
Required. The package this vulnerability was found in.
string affected_package = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for affectedPackage. |
getAffectedVersion()
public Version getAffectedVersion()
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Returns | |
---|---|
Type | Description |
Version | The affectedVersion. |
getAffectedVersionBuilder()
public Version.Builder getAffectedVersionBuilder()
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Returns | |
---|---|
Type | Description |
Version.Builder |
getAffectedVersionOrBuilder()
public VersionOrBuilder getAffectedVersionOrBuilder()
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Returns | |
---|---|
Type | Description |
VersionOrBuilder |
getDefaultInstanceForType()
public VulnerabilityOccurrence.PackageIssue getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEffectiveSeverity()
public Severity getEffectiveSeverity()
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Severity | The effectiveSeverity. |
getEffectiveSeverityValue()
public int getEffectiveSeverityValue()
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for effectiveSeverity. |
getFileLocation(int index)
public FileLocation getFileLocation(int index)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileLocation |
getFileLocationBuilder(int index)
public FileLocation.Builder getFileLocationBuilder(int index)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileLocation.Builder |
getFileLocationBuilderList()
public List<FileLocation.Builder> getFileLocationBuilderList()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
List<Builder> |
getFileLocationCount()
public int getFileLocationCount()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
int |
getFileLocationList()
public List<FileLocation> getFileLocationList()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
List<FileLocation> |
getFileLocationOrBuilder(int index)
public FileLocationOrBuilder getFileLocationOrBuilder(int index)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileLocationOrBuilder |
getFileLocationOrBuilderList()
public List<? extends FileLocationOrBuilder> getFileLocationOrBuilderList()
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Returns | |
---|---|
Type | Description |
List<? extends io.grafeas.v1.FileLocationOrBuilder> |
getFixAvailable()
public boolean getFixAvailable()
Output only. Whether a fix is available for this package.
bool fix_available = 7;
Returns | |
---|---|
Type | Description |
boolean | The fixAvailable. |
getFixedCpeUri()
public String getFixedCpeUri()
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string fixed_cpe_uri = 4;
Returns | |
---|---|
Type | Description |
String | The fixedCpeUri. |
getFixedCpeUriBytes()
public ByteString getFixedCpeUriBytes()
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string fixed_cpe_uri = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for fixedCpeUri. |
getFixedPackage()
public String getFixedPackage()
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string fixed_package = 5;
Returns | |
---|---|
Type | Description |
String | The fixedPackage. |
getFixedPackageBytes()
public ByteString getFixedPackageBytes()
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string fixed_package = 5;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for fixedPackage. |
getFixedVersion()
public Version getFixedVersion()
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Returns | |
---|---|
Type | Description |
Version | The fixedVersion. |
getFixedVersionBuilder()
public Version.Builder getFixedVersionBuilder()
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Returns | |
---|---|
Type | Description |
Version.Builder |
getFixedVersionOrBuilder()
public VersionOrBuilder getFixedVersionOrBuilder()
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Returns | |
---|---|
Type | Description |
VersionOrBuilder |
getPackageType()
public String getPackageType()
The type of package (e.g. OS, MAVEN, GO).
string package_type = 8;
Returns | |
---|---|
Type | Description |
String | The packageType. |
getPackageTypeBytes()
public ByteString getPackageTypeBytes()
The type of package (e.g. OS, MAVEN, GO).
string package_type = 8;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for packageType. |
hasAffectedVersion()
public boolean hasAffectedVersion()
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the affectedVersion field is set. |
hasFixedVersion()
public boolean hasFixedVersion()
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Returns | |
---|---|
Type | Description |
boolean | Whether the fixedVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAffectedVersion(Version value)
public VulnerabilityOccurrence.PackageIssue.Builder mergeAffectedVersion(Version value)
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Parameter | |
---|---|
Name | Description |
value | Version |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
mergeFixedVersion(Version value)
public VulnerabilityOccurrence.PackageIssue.Builder mergeFixedVersion(Version value)
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Parameter | |
---|---|
Name | Description |
value | Version |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
mergeFrom(VulnerabilityOccurrence.PackageIssue other)
public VulnerabilityOccurrence.PackageIssue.Builder mergeFrom(VulnerabilityOccurrence.PackageIssue other)
Parameter | |
---|---|
Name | Description |
other | VulnerabilityOccurrence.PackageIssue |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityOccurrence.PackageIssue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
removeFileLocation(int index)
public VulnerabilityOccurrence.PackageIssue.Builder removeFileLocation(int index)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setAffectedCpeUri(String value)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedCpeUri(String value)
Required. The CPE URI this vulnerability was found in.
string affected_cpe_uri = 1;
Parameter | |
---|---|
Name | Description |
value | String The affectedCpeUri to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setAffectedCpeUriBytes(ByteString value)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedCpeUriBytes(ByteString value)
Required. The CPE URI this vulnerability was found in.
string affected_cpe_uri = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for affectedCpeUri to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setAffectedPackage(String value)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedPackage(String value)
Required. The package this vulnerability was found in.
string affected_package = 2;
Parameter | |
---|---|
Name | Description |
value | String The affectedPackage to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setAffectedPackageBytes(ByteString value)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedPackageBytes(ByteString value)
Required. The package this vulnerability was found in.
string affected_package = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for affectedPackage to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setAffectedVersion(Version value)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedVersion(Version value)
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Parameter | |
---|---|
Name | Description |
value | Version |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setAffectedVersion(Version.Builder builderForValue)
public VulnerabilityOccurrence.PackageIssue.Builder setAffectedVersion(Version.Builder builderForValue)
Required. The version of the package that is installed on the resource affected by this vulnerability.
.grafeas.v1.Version affected_version = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | Version.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setEffectiveSeverity(Severity value)
public VulnerabilityOccurrence.PackageIssue.Builder setEffectiveSeverity(Severity value)
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Severity The effectiveSeverity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setEffectiveSeverityValue(int value)
public VulnerabilityOccurrence.PackageIssue.Builder setEffectiveSeverityValue(int value)
The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
.grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for effectiveSeverity to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityOccurrence.PackageIssue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setFileLocation(int index, FileLocation value)
public VulnerabilityOccurrence.PackageIssue.Builder setFileLocation(int index, FileLocation value)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameters | |
---|---|
Name | Description |
index | int |
value | FileLocation |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setFileLocation(int index, FileLocation.Builder builderForValue)
public VulnerabilityOccurrence.PackageIssue.Builder setFileLocation(int index, FileLocation.Builder builderForValue)
The location at which this package was found.
repeated .grafeas.v1.FileLocation file_location = 10;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | FileLocation.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setFixAvailable(boolean value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixAvailable(boolean value)
Output only. Whether a fix is available for this package.
bool fix_available = 7;
Parameter | |
---|---|
Name | Description |
value | boolean The fixAvailable to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setFixedCpeUri(String value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedCpeUri(String value)
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string fixed_cpe_uri = 4;
Parameter | |
---|---|
Name | Description |
value | String The fixedCpeUri to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setFixedCpeUriBytes(ByteString value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedCpeUriBytes(ByteString value)
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
string fixed_cpe_uri = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for fixedCpeUri to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setFixedPackage(String value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedPackage(String value)
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string fixed_package = 5;
Parameter | |
---|---|
Name | Description |
value | String The fixedPackage to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setFixedPackageBytes(ByteString value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedPackageBytes(ByteString value)
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
string fixed_package = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for fixedPackage to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setFixedVersion(Version value)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedVersion(Version value)
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Parameter | |
---|---|
Name | Description |
value | Version |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setFixedVersion(Version.Builder builderForValue)
public VulnerabilityOccurrence.PackageIssue.Builder setFixedVersion(Version.Builder builderForValue)
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
.grafeas.v1.Version fixed_version = 6;
Parameter | |
---|---|
Name | Description |
builderForValue | Version.Builder |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setPackageType(String value)
public VulnerabilityOccurrence.PackageIssue.Builder setPackageType(String value)
The type of package (e.g. OS, MAVEN, GO).
string package_type = 8;
Parameter | |
---|---|
Name | Description |
value | String The packageType to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setPackageTypeBytes(ByteString value)
public VulnerabilityOccurrence.PackageIssue.Builder setPackageTypeBytes(ByteString value)
The type of package (e.g. OS, MAVEN, GO).
string package_type = 8;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for packageType to set. |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VulnerabilityOccurrence.PackageIssue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityOccurrence.PackageIssue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VulnerabilityOccurrence.PackageIssue.Builder |