Class PackageOccurrence.Builder (2.3.1)

  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
Type Description
Descriptor

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
Type Description
PackageOccurrence.Builder

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
Name Description
index int
value Location
Returns
Type Description
PackageOccurrence.Builder

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
Name Description
index int
builderForValue Location.Builder
Returns
Type Description
PackageOccurrence.Builder

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
Name Description
value Location
Returns
Type Description
PackageOccurrence.Builder

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
Name Description
builderForValue Location.Builder
Returns
Type Description
PackageOccurrence.Builder

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
Type Description
Location.Builder

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
Name Description
index int
Returns
Type Description
Location.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackageOccurrence.Builder
Overrides

build()

  public 
  
 PackageOccurrence 
  
 build 
 () 
 
Returns
Type Description
PackageOccurrence

buildPartial()

  public 
  
 PackageOccurrence 
  
 buildPartial 
 () 
 
Returns
Type Description
PackageOccurrence

clear()

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type Description
PackageOccurrence.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PackageOccurrence.Builder
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
Type Description
PackageOccurrence.Builder

clearName()

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 clearName 
 () 
 

Output only. The name of the installed package.

string name = 1;

Returns
Type Description
PackageOccurrence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PackageOccurrence.Builder
Overrides

clone()

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type Description
PackageOccurrence.Builder
Overrides

getDefaultInstanceForType()

  public 
  
 PackageOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type Description
PackageOccurrence

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
Location

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
Name Description
index int
Returns
Type Description
Location.Builder

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
Type Description
List < Builder >

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
Type Description
int

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
Type Description
List < Location >

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
Name Description
index int
Returns
Type Description
LocationOrBuilder

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
Type Description
List < ? extends io.grafeas.v1.LocationOrBuilder >

getName()

  public 
  
 String 
  
 getName 
 () 
 

Output only. The name of the installed package.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

Output only. The name of the installed package.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PackageOccurrence.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Message 
  
 other 
 ) 
 
Parameter
Name Description
other Message
Returns
Type Description
PackageOccurrence.Builder
Overrides

mergeFrom(PackageOccurrence other)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 PackageOccurrence 
  
 other 
 ) 
 
Parameter
Name Description
other PackageOccurrence
Returns
Type Description
PackageOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 PackageOccurrence 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackageOccurrence.Builder
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
Name Description
index int
Returns
Type Description
PackageOccurrence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackageOccurrence.Builder
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
Name Description
index int
value Location
Returns
Type Description
PackageOccurrence.Builder

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
Name Description
index int
builderForValue Location.Builder
Returns
Type Description
PackageOccurrence.Builder

setName(String value)

  public 
  
 PackageOccurrence 
 . 
 Builder 
  
 setName 
 ( 
 String 
  
 value 
 ) 
 

Output only. The name of the installed package.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PackageOccurrence.Builder

This builder for chaining.

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
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PackageOccurrence.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 PackageOccurrence 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackageOccurrence.Builder
Overrides
Design a Mobile Site
View Site in Mobile | Classic
Share by: