Class Details.Builder (2.4.6)

public static final class Details.Builder extends GeneratedMessageV3.Builder<Details.Builder> implements DetailsOrBuilder

Details of a vulnerability Occurrence.

Protobuf type grafeas.v1beta1.vulnerability.Details

Implements

DetailsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPackageIssue(Iterable<? extends PackageIssue> values)

public Details.Builder addAllPackageIssue(Iterable<? extends PackageIssue> values)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.vulnerability.PackageIssue>
Returns
TypeDescription
Details.Builder

addAllRelatedUrls(Iterable<? extends RelatedUrl> values)

public Details.Builder addAllRelatedUrls(Iterable<? extends RelatedUrl> values)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.common.RelatedUrl>
Returns
TypeDescription
Details.Builder

addPackageIssue(int index, PackageIssue value)

public Details.Builder addPackageIssue(int index, PackageIssue value)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameters
NameDescription
indexint
valuePackageIssue
Returns
TypeDescription
Details.Builder

addPackageIssue(int index, PackageIssue.Builder builderForValue)

public Details.Builder addPackageIssue(int index, PackageIssue.Builder builderForValue)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameters
NameDescription
indexint
builderForValuePackageIssue.Builder
Returns
TypeDescription
Details.Builder

addPackageIssue(PackageIssue value)

public Details.Builder addPackageIssue(PackageIssue value)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
valuePackageIssue
Returns
TypeDescription
Details.Builder

addPackageIssue(PackageIssue.Builder builderForValue)

public Details.Builder addPackageIssue(PackageIssue.Builder builderForValue)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
builderForValuePackageIssue.Builder
Returns
TypeDescription
Details.Builder

addPackageIssueBuilder()

public PackageIssue.Builder addPackageIssueBuilder()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
PackageIssue.Builder

addPackageIssueBuilder(int index)

public PackageIssue.Builder addPackageIssueBuilder(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssue.Builder

addRelatedUrls(int index, RelatedUrl value)

public Details.Builder addRelatedUrls(int index, RelatedUrl value)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameters
NameDescription
indexint
valueRelatedUrl
Returns
TypeDescription
Details.Builder

addRelatedUrls(int index, RelatedUrl.Builder builderForValue)

public Details.Builder addRelatedUrls(int index, RelatedUrl.Builder builderForValue)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameters
NameDescription
indexint
builderForValueRelatedUrl.Builder
Returns
TypeDescription
Details.Builder

addRelatedUrls(RelatedUrl value)

public Details.Builder addRelatedUrls(RelatedUrl value)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
valueRelatedUrl
Returns
TypeDescription
Details.Builder

addRelatedUrls(RelatedUrl.Builder builderForValue)

public Details.Builder addRelatedUrls(RelatedUrl.Builder builderForValue)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
builderForValueRelatedUrl.Builder
Returns
TypeDescription
Details.Builder

addRelatedUrlsBuilder()

public RelatedUrl.Builder addRelatedUrlsBuilder()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
RelatedUrl.Builder

addRelatedUrlsBuilder(int index)

public RelatedUrl.Builder addRelatedUrlsBuilder(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrl.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Details build()
Returns
TypeDescription
Details

buildPartial()

public Details buildPartial()
Returns
TypeDescription
Details

clear()

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

clearCvssScore()

public Details.Builder clearCvssScore()

Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 3;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clearEffectiveSeverity()

public Details.Builder clearEffectiveSeverity()

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLongDescription()

public Details.Builder clearLongDescription()

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Details.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Details.Builder
Overrides

clearPackageIssue()

public Details.Builder clearPackageIssue()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
Details.Builder

clearRelatedUrls()

public Details.Builder clearRelatedUrls()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
Details.Builder

clearSeverity()

public Details.Builder clearSeverity()

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clearShortDescription()

public Details.Builder clearShortDescription()

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clearType()

public Details.Builder clearType()

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Returns
TypeDescription
Details.Builder

This builder for chaining.

clone()

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

getCvssScore()

public float getCvssScore()

Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 3;

Returns
TypeDescription
float

The cvssScore.

getDefaultInstanceForType()

public Details getDefaultInstanceForType()
Returns
TypeDescription
Details

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEffectiveSeverity()

public Severity getEffectiveSeverity()

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Returns
TypeDescription
Severity

The effectiveSeverity.

getEffectiveSeverityValue()

public int getEffectiveSeverityValue()

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for effectiveSeverity.

getLongDescription()

public String getLongDescription()

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
TypeDescription
String

The longDescription.

getLongDescriptionBytes()

public ByteString getLongDescriptionBytes()

Output only. A detailed description of this vulnerability.

string long_description = 6;

Returns
TypeDescription
ByteString

The bytes for longDescription.

getPackageIssue(int index)

public PackageIssue getPackageIssue(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssue

getPackageIssueBuilder(int index)

public PackageIssue.Builder getPackageIssueBuilder(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssue.Builder

getPackageIssueBuilderList()

public List<PackageIssue.Builder> getPackageIssueBuilderList()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
List<Builder>

getPackageIssueCount()

public int getPackageIssueCount()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
int

getPackageIssueList()

public List<PackageIssue> getPackageIssueList()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
List<PackageIssue>

getPackageIssueOrBuilder(int index)

public PackageIssueOrBuilder getPackageIssueOrBuilder(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageIssueOrBuilder

getPackageIssueOrBuilderList()

public List<? extends PackageIssueOrBuilder> getPackageIssueOrBuilderList()

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.vulnerability.PackageIssueOrBuilder>

getRelatedUrls(int index)

public RelatedUrl getRelatedUrls(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrl

getRelatedUrlsBuilder(int index)

public RelatedUrl.Builder getRelatedUrlsBuilder(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrl.Builder

getRelatedUrlsBuilderList()

public List<RelatedUrl.Builder> getRelatedUrlsBuilderList()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
List<Builder>

getRelatedUrlsCount()

public int getRelatedUrlsCount()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
int

getRelatedUrlsList()

public List<RelatedUrl> getRelatedUrlsList()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
List<RelatedUrl>

getRelatedUrlsOrBuilder(int index)

public RelatedUrlOrBuilder getRelatedUrlsOrBuilder(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrlOrBuilder

getRelatedUrlsOrBuilderList()

public List<? extends RelatedUrlOrBuilder> getRelatedUrlsOrBuilderList()

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.common.RelatedUrlOrBuilder>

getSeverity()

public Severity getSeverity()

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
TypeDescription
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getShortDescription()

public String getShortDescription()

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
TypeDescription
String

The shortDescription.

getShortDescriptionBytes()

public ByteString getShortDescriptionBytes()

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Returns
TypeDescription
ByteString

The bytes for shortDescription.

getType()

public String getType()

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Details other)

public Details.Builder mergeFrom(Details other)
Parameter
NameDescription
otherDetails
Returns
TypeDescription
Details.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Details.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Details.Builder
Overrides

removePackageIssue(int index)

public Details.Builder removePackageIssue(int index)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Details.Builder

removeRelatedUrls(int index)

public Details.Builder removeRelatedUrls(int index)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
Details.Builder

setCvssScore(float value)

public Details.Builder setCvssScore(float value)

Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.

float cvss_score = 3;

Parameter
NameDescription
valuefloat

The cvssScore to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setEffectiveSeverity(Severity value)

public Details.Builder setEffectiveSeverity(Severity value)

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Parameter
NameDescription
valueSeverity

The effectiveSeverity to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setEffectiveSeverityValue(int value)

public Details.Builder setEffectiveSeverityValue(int value)

The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.

.grafeas.v1beta1.vulnerability.Severity effective_severity = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for effectiveSeverity to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLongDescription(String value)

public Details.Builder setLongDescription(String value)

Output only. A detailed description of this vulnerability.

string long_description = 6;

Parameter
NameDescription
valueString

The longDescription to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setLongDescriptionBytes(ByteString value)

public Details.Builder setLongDescriptionBytes(ByteString value)

Output only. A detailed description of this vulnerability.

string long_description = 6;

Parameter
NameDescription
valueByteString

The bytes for longDescription to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setPackageIssue(int index, PackageIssue value)

public Details.Builder setPackageIssue(int index, PackageIssue value)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameters
NameDescription
indexint
valuePackageIssue
Returns
TypeDescription
Details.Builder

setPackageIssue(int index, PackageIssue.Builder builderForValue)

public Details.Builder setPackageIssue(int index, PackageIssue.Builder builderForValue)

Required. The set of affected locations and their fixes (if available) within the associated resource.

repeated .grafeas.v1beta1.vulnerability.PackageIssue package_issue = 4;

Parameters
NameDescription
indexint
builderForValuePackageIssue.Builder
Returns
TypeDescription
Details.Builder

setRelatedUrls(int index, RelatedUrl value)

public Details.Builder setRelatedUrls(int index, RelatedUrl value)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameters
NameDescription
indexint
valueRelatedUrl
Returns
TypeDescription
Details.Builder

setRelatedUrls(int index, RelatedUrl.Builder builderForValue)

public Details.Builder setRelatedUrls(int index, RelatedUrl.Builder builderForValue)

Output only. URLs related to this vulnerability.

repeated .grafeas.v1beta1.RelatedUrl related_urls = 7;

Parameters
NameDescription
indexint
builderForValueRelatedUrl.Builder
Returns
TypeDescription
Details.Builder

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

public Details.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Details.Builder
Overrides

setSeverity(Severity value)

public Details.Builder setSeverity(Severity value)

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Parameter
NameDescription
valueSeverity

The severity to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setSeverityValue(int value)

public Details.Builder setSeverityValue(int value)

Output only. The note provider assigned Severity of the vulnerability.

.grafeas.v1beta1.vulnerability.Severity severity = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for severity to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setShortDescription(String value)

public Details.Builder setShortDescription(String value)

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Parameter
NameDescription
valueString

The shortDescription to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setShortDescriptionBytes(ByteString value)

public Details.Builder setShortDescriptionBytes(ByteString value)

Output only. A one sentence description of this vulnerability.

string short_description = 5;

Parameter
NameDescription
valueByteString

The bytes for shortDescription to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setType(String value)

public Details.Builder setType(String value)

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Details.Builder setTypeBytes(ByteString value)

The type of package; whether native or non native(ruby gems, node.js packages etc)

string type = 1;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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