Class PackageOccurrence.Builder (2.15.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)

public PackageOccurrence.Builder addLocation(Location.Builder builderForValue)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
builderForValueLocation.Builder
Returns
TypeDescription
PackageOccurrence.Builder

addLocationBuilder()

public Location.Builder addLocationBuilder()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
Location.Builder

addLocationBuilder(int index)

public Location.Builder addLocationBuilder(int index)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PackageOccurrence build()
Returns
TypeDescription
PackageOccurrence

buildPartial()

public PackageOccurrence buildPartial()
Returns
TypeDescription
PackageOccurrence

clear()

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

clearArchitecture()

public PackageOccurrence.Builder clearArchitecture()

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

clearCpeUri()

public PackageOccurrence.Builder clearCpeUri()

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLicense()

public PackageOccurrence.Builder clearLicense()

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Returns
TypeDescription
PackageOccurrence.Builder

clearLocation()

public PackageOccurrence.Builder clearLocation()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
PackageOccurrence.Builder

clearName()

public PackageOccurrence.Builder clearName()

The name of the installed package.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageType()

public PackageOccurrence.Builder clearPackageType()

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

string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

clearVersion()

public PackageOccurrence.Builder clearVersion()

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PackageOccurrence.Builder

clone()

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

getArchitecture()

public Architecture getArchitecture()

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Architecture

The architecture.

getArchitectureValue()

public int getArchitectureValue()

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for architecture.

getCpeUri()

public String getCpeUri()

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The cpeUri.

getCpeUriBytes()

public ByteString getCpeUriBytes()

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public PackageOccurrence getDefaultInstanceForType()
Returns
TypeDescription
PackageOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLicense()

public License getLicense()

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Returns
TypeDescription
License

The license.

getLicenseBuilder()

public License.Builder getLicenseBuilder()

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Returns
TypeDescription
License.Builder

getLicenseOrBuilder()

public LicenseOrBuilder getLicenseOrBuilder()

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Returns
TypeDescription
LicenseOrBuilder

getLocation(int index)

public Location getLocation(int index)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location

getLocationBuilder(int index)

public Location.Builder getLocationBuilder(int index)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Location.Builder

getLocationBuilderList()

public List<Location.Builder> getLocationBuilderList()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
List<Builder>

getLocationCount()

public int getLocationCount()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
int

getLocationList()

public List<Location> getLocationList()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
List<Location>

getLocationOrBuilder(int index)

public LocationOrBuilder getLocationOrBuilder(int index)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationOrBuilder

getLocationOrBuilderList()

public List<? extends LocationOrBuilder> getLocationOrBuilderList()

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

repeated .grafeas.v1.Location location = 2;

Returns
TypeDescription
List<? extends io.grafeas.v1.LocationOrBuilder>

getName()

public String getName()

The name of the installed package.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the installed package.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPackageType()

public String getPackageType()

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

string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The packageType.

getPackageTypeBytes()

public ByteString getPackageTypeBytes()

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

string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for packageType.

getVersion()

public Version getVersion()

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Version

The version.

getVersionBuilder()

public Version.Builder getVersionBuilder()

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Version.Builder

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VersionOrBuilder

hasLicense()

public boolean hasLicense()

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Returns
TypeDescription
boolean

Whether the license field is set.

hasVersion()

public boolean hasVersion()

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(PackageOccurrence other)

public PackageOccurrence.Builder mergeFrom(PackageOccurrence other)
Parameter
NameDescription
otherPackageOccurrence
Returns
TypeDescription
PackageOccurrence.Builder

mergeLicense(License value)

public PackageOccurrence.Builder mergeLicense(License value)

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Parameter
NameDescription
valueLicense
Returns
TypeDescription
PackageOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersion(Version value)

public PackageOccurrence.Builder mergeVersion(Version value)

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVersion
Returns
TypeDescription
PackageOccurrence.Builder

removeLocation(int index)

public PackageOccurrence.Builder removeLocation(int index)

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

repeated .grafeas.v1.Location location = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageOccurrence.Builder

setArchitecture(Architecture value)

public PackageOccurrence.Builder setArchitecture(Architecture value)

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueArchitecture

The architecture to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setArchitectureValue(int value)

public PackageOccurrence.Builder setArchitectureValue(int value)

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setCpeUri(String value)

public PackageOccurrence.Builder setCpeUri(String value)

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The cpeUri to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setCpeUriBytes(ByteString value)

public PackageOccurrence.Builder setCpeUriBytes(ByteString value)

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.

string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for cpeUri to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLicense(License value)

public PackageOccurrence.Builder setLicense(License value)

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Parameter
NameDescription
valueLicense
Returns
TypeDescription
PackageOccurrence.Builder

setLicense(License.Builder builderForValue)

public PackageOccurrence.Builder setLicense(License.Builder builderForValue)

Licenses that have been declared by the authors of the package.

.grafeas.v1.License license = 6;

Parameter
NameDescription
builderForValueLicense.Builder
Returns
TypeDescription
PackageOccurrence.Builder

setLocation(int index, Location value)

public PackageOccurrence.Builder setLocation(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

setLocation(int index, Location.Builder builderForValue)

public PackageOccurrence.Builder setLocation(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

setName(String value)

public PackageOccurrence.Builder setName(String value)

The name of the installed package.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PackageOccurrence.Builder setNameBytes(ByteString value)

The name of the installed package.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setPackageType(String value)

public PackageOccurrence.Builder setPackageType(String value)

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

string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The packageType to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

setPackageTypeBytes(ByteString value)

public PackageOccurrence.Builder setPackageTypeBytes(ByteString value)

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

string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for packageType to set.

Returns
TypeDescription
PackageOccurrence.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(Version value)

public PackageOccurrence.Builder setVersion(Version value)

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVersion
Returns
TypeDescription
PackageOccurrence.Builder

setVersion(Version.Builder builderForValue)

public PackageOccurrence.Builder setVersion(Version.Builder builderForValue)

The version of the package.

.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
PackageOccurrence.Builder