Send feedback
Class PackageOccurrence.Builder (2.3.1) Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.1 keyboard_arrow_down
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
Methods
addAllLocation(Iterable<? extends Location> values)
public
PackageOccurrence
.
Builder
addAllLocation
(
Iterable
< ?
extends
Location
>
values
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter Name
Description
values
Iterable
< ? extends io.grafeas.v1.Location
>
Returns
addLocation(int index, Location value)
public
PackageOccurrence
.
Builder
addLocation
(
int
index
,
Location
value
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameters
Returns
addLocation(int index, Location.Builder builderForValue)
public
PackageOccurrence
.
Builder
addLocation
(
int
index
,
Location
.
Builder
builderForValue
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameters
Returns
addLocation(Location value)
public
PackageOccurrence
.
Builder
addLocation
(
Location
value
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
addLocation(Location.Builder builderForValue)
public
PackageOccurrence
.
Builder
addLocation
(
Location
.
Builder
builderForValue
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
addLocationBuilder()
public
Location
.
Builder
addLocationBuilder
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
addLocationBuilder(int index)
public
Location
.
Builder
addLocationBuilder
(
int
index
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public
PackageOccurrence
.
Builder
addRepeatedField
(
Descriptors
.
FieldDescriptor
field
,
Object
value
)
Parameters
Returns
Overrides
build()
public
PackageOccurrence
build
()
Returns
buildPartial()
public
PackageOccurrence
buildPartial
()
Returns
clear()
public
PackageOccurrence
.
Builder
clear
()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public
PackageOccurrence
.
Builder
clearField
(
Descriptors
.
FieldDescriptor
field
)
Parameter
Returns
Overrides
clearLocation()
public
PackageOccurrence
.
Builder
clearLocation
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
clearName()
public
PackageOccurrence
.
Builder
clearName
()
Output only. The name of the installed package.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public
PackageOccurrence
.
Builder
clearOneof
(
Descriptors
.
OneofDescriptor
oneof
)
Parameter
Returns
Overrides
clone()
public
PackageOccurrence
.
Builder
clone
()
Returns
Overrides
getDefaultInstanceForType()
public
PackageOccurrence
getDefaultInstanceForType
()
Returns
getDescriptorForType()
public
Descriptors
.
Descriptor
getDescriptorForType
()
Returns
Overrides
getLocation(int index)
public
Location
getLocation
(
int
index
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
getLocationBuilder(int index)
public
Location
.
Builder
getLocationBuilder
(
int
index
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
getLocationBuilderList()
public
List<Location
.
Builder
>
getLocationBuilderList
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
getLocationCount()
public
int
getLocationCount
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
getLocationList()
public
List<Location>
getLocationList
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
getLocationOrBuilder(int index)
public
LocationOrBuilder
getLocationOrBuilder
(
int
index
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
getLocationOrBuilderList()
public
List
< ?
extends
LocationOrBuilder
>
getLocationOrBuilderList
()
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Returns
getName()
Output only. The name of the installed package.
string name = 1;
Returns
getNameBytes()
public
ByteString
getNameBytes
()
Output only. The name of the installed package.
string name = 1;
Returns
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
Returns
Overrides
isInitialized()
public
final
boolean
isInitialized
()
Returns
Overrides
public
PackageOccurrence
.
Builder
mergeFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public
PackageOccurrence
.
Builder
mergeFrom
(
Message
other
)
Parameter
Returns
Overrides
mergeFrom(PackageOccurrence other)
public
PackageOccurrence
.
Builder
mergeFrom
(
PackageOccurrence
other
)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public
final
PackageOccurrence
.
Builder
mergeUnknownFields
(
UnknownFieldSet
unknownFields
)
Parameter
Returns
Overrides
removeLocation(int index)
public
PackageOccurrence
.
Builder
removeLocation
(
int
index
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public
PackageOccurrence
.
Builder
setField
(
Descriptors
.
FieldDescriptor
field
,
Object
value
)
Parameters
Returns
Overrides
setLocation(int index, Location value)
public
PackageOccurrence
.
Builder
setLocation
(
int
index
,
Location
value
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameters
Returns
setLocation(int index, Location.Builder builderForValue)
public
PackageOccurrence
.
Builder
setLocation
(
int
index
,
Location
.
Builder
builderForValue
)
Required. All of the places within the filesystem versions of this package
have been found.
repeated .grafeas.v1.Location location = 2;
Parameters
Returns
setName(String value)
public
PackageOccurrence
.
Builder
setName
(
String
value
)
Output only. The name of the installed package.
string name = 1;
Parameter
Returns
setNameBytes(ByteString value)
public
PackageOccurrence
.
Builder
setNameBytes
(
ByteString
value
)
Output only. The name of the installed package.
string name = 1;
Parameter Name
Description
value
ByteString
The bytes for name to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public
PackageOccurrence
.
Builder
setRepeatedField
(
Descriptors
.
FieldDescriptor
field
,
int
index
,
Object
value
)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public
final
PackageOccurrence
.
Builder
setUnknownFields
(
UnknownFieldSet
unknownFields
)
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]