Class PackageOccurrence.Builder (2.20.0)

public static final class PackageOccurrence.Builder extends GeneratedMessageV3.Builder<PackageOccurrence.Builder> implements PackageOccurrenceOrBuilder

Details on how a particular software package was installed on a system.

Protobuf type grafeas.v1.PackageOccurrence

Static Methods

getDescriptor()

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

Methods

addAllLocation(Iterable<? extends Location> values)

public PackageOccurrence.Builder addAllLocation(Iterable<? extends Location> values)

All of the places within the filesystem versions of this package have been found.

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Location>
Returns
TypeDescription
PackageOccurrence.Builder

addLocation(int index, Location value)

public PackageOccurrence.Builder addLocation(int index, Location value)

All of the places within the filesystem versions of this package have been found.

repeated .grafeas.v1.Location location = 2;

Parameters
NameDescription
indexint
valueLocation
Returns
TypeDescription
PackageOccurrence.Builder

addLocation(int index, Location.Builder builderForValue)

public PackageOccurrence.Builder addLocation(int index, Location.Builder builderForValue)

All of the places within the filesystem versions of this package have been found.

repeated .grafeas.v1.Location location = 2;

Parameters
NameDescription
indexint
builderForValueLocation.Builder
Returns
TypeDescription
PackageOccurrence.Builder

addLocation(Location value)

public PackageOccurrence.Builder addLocation(Location value)

All of the places within the filesystem versions of this package have been found.

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
valueLocation
Returns
TypeDescription
PackageOccurrence.Builder

addLocation(Location.Builder builderForValue)