public
static
final
class
PackageOccurrence
.
Builder
extends
GeneratedMessage
.
Builder<PackageOccurrence
.
Builder
>
implements
PackageOccurrenceOrBuilder
Details on how a particular software package was installed on a system.
Protobuf type grafeas.v1.PackageOccurrence
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PackageOccurrence.BuilderImplements
PackageOccurrenceOrBuilderStatic Methods
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
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;
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;
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;
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;
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;
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;
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;
build()
public
PackageOccurrence
build
()
buildPartial()
public
PackageOccurrence
buildPartial
()
clear()
public
PackageOccurrence
.
Builder
clear
()
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];
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];
clearLicense()
public
PackageOccurrence
.
Builder
clearLicense
()
Licenses that have been declared by the authors of the package.
.grafeas.v1.License license = 6;
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;
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];
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];
clearVersion()
public
PackageOccurrence
.
Builder
clearVersion
()
The version of the package.
.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
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];
getDefaultInstanceForType()
public
PackageOccurrence
getDefaultInstanceForType
()
getDescriptorForType()
public
Descriptors
.
Descriptor
getDescriptorForType
()
getLicense()
public
License
getLicense
()
Licenses that have been declared by the authors of the package.
.grafeas.v1.License license = 6;
getLicenseBuilder()
public
License
.
Builder
getLicenseBuilder
()
Licenses that have been declared by the authors of the package.
.grafeas.v1.License license = 6;
getLicenseOrBuilder()
public
LicenseOrBuilder
getLicenseOrBuilder
()
Licenses that have been declared by the authors of the package.
.grafeas.v1.License license = 6;
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;
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;
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;
getLocationCount()
public
int
getLocationCount
()
All of the places within the filesystem versions of this package have been found.
repeated .grafeas.v1.Location location = 2;
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;
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;
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;
getName()
public
String
getName
()
The name of the installed package.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
getNameBytes()
public
ByteString
getNameBytes
()
The name of the installed package.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
getVersion()
public
Version
getVersion
()
The version of the package.
.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVersionBuilder()
public
Version
.
Builder
getVersionBuilder
()
The version of the package.
.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVersionOrBuilder()
public
VersionOrBuilder
getVersionOrBuilder
()
The version of the package.
.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasLicense()
public
boolean
hasLicense
()
Licenses that have been declared by the authors of the package.
.grafeas.v1.License license = 6;
hasVersion()
public
boolean
hasVersion
()
The version of the package.
.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
PackageOccurrence
.
Builder
mergeFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
mergeFrom(Message other)
public
PackageOccurrence
.
Builder
mergeFrom
(
Message
other
)
mergeFrom(PackageOccurrence other)
public
PackageOccurrence
.
Builder
mergeFrom
(
PackageOccurrence
other
)
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;
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];
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;
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];
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];
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];
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];
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;
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;
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;
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;
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];
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];
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];
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];
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];
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];

